From 18af9009d719ce758678185ae0a57967da5ca6fe Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Thu, 30 Oct 2008 23:18:07 +0000 Subject: Resolve Time diffs for Windows; add Windows version of asynch I/O layer. Resolves QPID-1209 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709285 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/FailoverSession.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/client/FailoverSession.cpp') diff --git a/cpp/src/qpid/client/FailoverSession.cpp b/cpp/src/qpid/client/FailoverSession.cpp index d11d5aa362..5cb887a9f6 100644 --- a/cpp/src/qpid/client/FailoverSession.cpp +++ b/cpp/src/qpid/client/FailoverSession.cpp @@ -26,6 +26,7 @@ #include "qpid/log/Logger.h" #include "qpid/log/Options.h" #include "qpid/log/Statement.h" +#include "qpid/sys/Time.h" #include "qpid/client/FailoverConnection.h" #include "qpid/client/FailoverSession.h" @@ -377,7 +378,7 @@ FailoverSession::messageTransfer ( const string& destination, if ( ! failover_in_progress ) break; - usleep ( 1000 ); + qpid::sys::usleep ( 1000 ); } } } @@ -1416,7 +1417,7 @@ FailoverSession::prepareForFailover ( Connection newConnection ) { newSession = newConnection.newSession(); } - catch ( const std::exception& error ) + catch ( const std::exception& /*error*/ ) { throw Exception(QPID_MSG("Can't create failover session.")); } -- cgit v1.2.1