diff options
| author | Alan Conway <aconway@apache.org> | 2008-10-10 21:19:46 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-10-10 21:19:46 +0000 |
| commit | 91f45702afcf3b675fe80dbcf3a452daa61469e4 (patch) | |
| tree | d3a59d07dd3b4c88fa6a16d23b168dc6de20622b /cpp/src/qpid/client/FailoverSession.h | |
| parent | 792e46cad9a978c0d297c245772e57c0759cec31 (diff) | |
| download | qpid-python-91f45702afcf3b675fe80dbcf3a452daa61469e4.tar.gz | |
Failover client and example fixes & tidy up.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/FailoverSession.h')
| -rw-r--r-- | cpp/src/qpid/client/FailoverSession.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/FailoverSession.h b/cpp/src/qpid/client/FailoverSession.h index 713c72e460..7ff26f8079 100644 --- a/cpp/src/qpid/client/FailoverSession.h +++ b/cpp/src/qpid/client/FailoverSession.h @@ -35,6 +35,8 @@ #include "qpid/client/SessionImpl.h" #include "qpid/client/TypedResult.h" #include "qpid/shared_ptr.h" +#include "qpid/sys/Mutex.h" + #include <string> @@ -295,11 +297,13 @@ class FailoverSession void failover ( ); - FailoverSubscriptionManager * failoverSubscriptionManager; - + void setFailoverSubscriptionManager(FailoverSubscriptionManager*); private: + typedef sys::Mutex::ScopedLock Lock; + sys::Mutex lock; + FailoverSubscriptionManager * failoverSubscriptionManager; Session session; Session newSession; |
