diff options
| author | Alan Conway <aconway@apache.org> | 2009-02-17 20:18:38 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-02-17 20:18:38 +0000 |
| commit | 449d9d326b7cea02934c3e7e8ea7e84a817e47ac (patch) | |
| tree | 4ecd016673b36dede5b99a7267be9c0a1eff3118 /cpp/src/qpid/client/SubscriptionManager.h | |
| parent | 4ddd827fc647d9b7a80de30b361e208b44ee2e13 (diff) | |
| download | qpid-python-449d9d326b7cea02934c3e7e8ea7e84a817e47ac.tar.gz | |
Minor fixes.
client/SubscriptionManager: made it thread safe, was causing latencytest to crash with --rate and --time-limit.
cluster/Cluster.cpp: don't call cpg_leave during shutdown. Not required and a problem if shutdown was caused by a cpg error.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@745226 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SubscriptionManager.h')
| -rw-r--r-- | cpp/src/qpid/client/SubscriptionManager.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cpp/src/qpid/client/SubscriptionManager.h b/cpp/src/qpid/client/SubscriptionManager.h index 89823a11bc..6b45092931 100644 --- a/cpp/src/qpid/client/SubscriptionManager.h +++ b/cpp/src/qpid/client/SubscriptionManager.h @@ -95,14 +95,6 @@ namespace client { */ class SubscriptionManager : public sys::Runnable { - typedef sys::Mutex::ScopedLock Lock; - typedef sys::Mutex::ScopedUnlock Unlock; - - qpid::client::Dispatcher dispatcher; - qpid::client::AsyncSession session; - bool autoStop; - SubscriptionSettings defaultSettings; - public: /** Create a new SubscriptionManager associated with a session */ SubscriptionManager(const Session& session); @@ -271,6 +263,11 @@ class SubscriptionManager : public sys::Runnable Session getSession() const; private: + mutable sys::Mutex lock; + qpid::client::Dispatcher dispatcher; + qpid::client::AsyncSession session; + bool autoStop; + SubscriptionSettings defaultSettings; std::map<std::string, Subscription> subscriptions; }; |
