summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/ConsoleSessionImpl.h
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-07-12 11:49:32 +0000
committerTed Ross <tross@apache.org>2011-07-12 11:49:32 +0000
commit6bc2dfcb32f4b6af4c24a51a664c4ab838d8a3fa (patch)
tree4a6dd7d44d0a4755e84abaceea5c0016b56d9b7c /qpid/cpp/src/qmf/ConsoleSessionImpl.h
parent95868c8ad1a191fa806f9fc4ddadbfabf90e15ab (diff)
downloadqpid-python-6bc2dfcb32f4b6af4c24a51a664c4ab838d8a3fa.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@1145557 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/ConsoleSessionImpl.h')
-rw-r--r--qpid/cpp/src/qmf/ConsoleSessionImpl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/src/qmf/ConsoleSessionImpl.h b/qpid/cpp/src/qmf/ConsoleSessionImpl.h
index 411b3f016a..429dfc4881 100644
--- a/qpid/cpp/src/qmf/ConsoleSessionImpl.h
+++ b/qpid/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;
};