diff options
| author | Ted Ross <tross@apache.org> | 2011-07-12 11:49:32 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-07-12 11:49:32 +0000 |
| commit | a3d97466c5c51a1d07c2d1b41011f38bd02d9a28 (patch) | |
| tree | b4090d05ecf8ecea337867980942feb1342bd40a /cpp/src/qmf/ConsoleSessionImpl.h | |
| parent | 5b03f8e810b08f6d0073c45933c957f970720d6c (diff) | |
| download | qpid-python-a3d97466c5c51a1d07c2d1b41011f38bd02d9a28.tar.gz | |
QPID-3275 - QMF Console asynchronous correlation-id should be scoped to the session, not the specific agent
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1145557 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/ConsoleSessionImpl.h')
| -rw-r--r-- | cpp/src/qmf/ConsoleSessionImpl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qmf/ConsoleSessionImpl.h b/cpp/src/qmf/ConsoleSessionImpl.h index 411b3f016a..429dfc4881 100644 --- a/cpp/src/qmf/ConsoleSessionImpl.h +++ b/cpp/src/qmf/ConsoleSessionImpl.h @@ -90,6 +90,8 @@ namespace qmf { std::string directBase; std::string topicBase; boost::shared_ptr<SchemaCache> schemaCache; + qpid::sys::Mutex corrlock; + uint32_t nextCorrelator; void enqueueEvent(const ConsoleEvent&); void enqueueEventLH(const ConsoleEvent&); @@ -100,6 +102,7 @@ namespace qmf { void handleV1SchemaResponse(qpid::management::Buffer&, uint32_t, const qpid::messaging::Message&); void periodicProcessing(uint64_t); void run(); + uint32_t correlator() { qpid::sys::Mutex::ScopedLock l(corrlock); return nextCorrelator++; } friend class AgentImpl; }; |
