summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/BlockingQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/sys/BlockingQueue.h')
-rw-r--r--cpp/src/qpid/sys/BlockingQueue.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/BlockingQueue.h b/cpp/src/qpid/sys/BlockingQueue.h
index 56d41574df..dd709c6bff 100644
--- a/cpp/src/qpid/sys/BlockingQueue.h
+++ b/cpp/src/qpid/sys/BlockingQueue.h
@@ -103,10 +103,14 @@ public:
return closed;
}
- bool isEmpty() const {
+ bool empty() const {
Waitable::ScopedLock l(lock);
return queue.empty();
}
+ size_t size() const {
+ Waitable::ScopedLock l(lock);
+ return queue.size();
+ }
private: