summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/BlockingQueue.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-07 16:06:31 +0000
committerAlan Conway <aconway@apache.org>2007-11-07 16:06:31 +0000
commitd19657d82321b2b5e2cac386c49aa99f82b976fb (patch)
treeeceb3790181d8b058e207a0847c35024856325b0 /cpp/src/qpid/sys/BlockingQueue.h
parent5bec8a4a978290a8dd710870a04bd09e9f493c26 (diff)
downloadqpid-python-d19657d82321b2b5e2cac386c49aa99f82b976fb.tar.gz
Added LocalQueue subscriptions. LocalQueue::pop() provides a "pull"
alternative to the MessageListener::received() "push" API. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@592803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/BlockingQueue.h')
-rw-r--r--cpp/src/qpid/sys/BlockingQueue.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/qpid/sys/BlockingQueue.h b/cpp/src/qpid/sys/BlockingQueue.h
index 65196dbd9c..c53949ad6f 100644
--- a/cpp/src/qpid/sys/BlockingQueue.h
+++ b/cpp/src/qpid/sys/BlockingQueue.h
@@ -29,8 +29,6 @@
namespace qpid {
namespace sys {
-struct QueueClosed {};
-
template <class T>
class BlockingQueue
{
@@ -46,7 +44,7 @@ public:
T pop()
{
Waitable::ScopedLock l(lock);
- if (!queueWait()) throw QueueClosed();
+ if (!queueWait()) throw ClosedException();
return popInternal();
}
@@ -78,7 +76,7 @@ public:
}
/**
- * Close the queue. Throws QueueClosed in threads waiting in pop().
+ * Close the queue. Throws ClosedException in threads waiting in pop().
* Blocks till all waiting threads have been notified.
*/
void close()