diff options
Diffstat (limited to 'cpp/src/qpid/sys')
| -rw-r--r-- | cpp/src/qpid/sys/BlockingQueue.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/BlockingQueue.h b/cpp/src/qpid/sys/BlockingQueue.h index 44c95b225d..bcd8c84276 100644 --- a/cpp/src/qpid/sys/BlockingQueue.h +++ b/cpp/src/qpid/sys/BlockingQueue.h @@ -99,7 +99,12 @@ public: Waitable::ScopedLock l(lock); return closed; } - + + bool isEmpty() const { + Waitable::ScopedLock l(lock); + return queue.empty(); + } + private: void queueNotify(size_t ignore) { |
