summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/FailoverSession.cpp
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2008-10-30 23:18:07 +0000
committerStephen D. Huston <shuston@apache.org>2008-10-30 23:18:07 +0000
commit18af9009d719ce758678185ae0a57967da5ca6fe (patch)
treea291bdc0dc2e139249ddad5c0bb883fe8dde426a /cpp/src/qpid/client/FailoverSession.cpp
parent5d74de00280c14e33964b099d6658a147479b4ca (diff)
downloadqpid-python-18af9009d719ce758678185ae0a57967da5ca6fe.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/client/FailoverSession.cpp')
-rw-r--r--cpp/src/qpid/client/FailoverSession.cpp5
1 files changed, 3 insertions, 2 deletions
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."));
}