summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SemanticState.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-20 13:58:23 +0000
committerAlan Conway <aconway@apache.org>2008-10-20 13:58:23 +0000
commit40e17612ff0494ccd440a3a0a3789daabcfb3684 (patch)
tree569d53ad5f6280a151eb1f7019c92e9d3e4f9848 /cpp/src/qpid/broker/SemanticState.cpp
parentac0eb22016bf9ae223f147927ba76add8d25dc31 (diff)
downloadqpid-python-40e17612ff0494ccd440a3a0a3789daabcfb3684.tar.gz
cluster: DumpClient updates consumer notifyEnabled and blocked.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@706293 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index 177157bbb6..4d735c9abc 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -616,6 +616,11 @@ void SemanticState::ConsumerImpl::disableNotify()
notifyEnabled = false;
}
+bool SemanticState::ConsumerImpl::isNotifyEnabld() {
+ Mutex::ScopedLock l(lock);
+ return notifyEnabled;
+}
+
void SemanticState::ConsumerImpl::notify()
{
//TODO: alter this, don't want to hold locks across external