diff options
author | Gordon Sim <gsim@apache.org> | 2008-03-17 12:17:55 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-03-17 12:17:55 +0000 |
commit | 6574ab48665039ae9b8b1d2c5dd26ea94a3d23fa (patch) | |
tree | 01091458f1db56d09953cd129305586057df1384 /cpp/src/qpid/broker/Queue.cpp | |
parent | 1c1efeddef24ef18d75af65e4249b541b1382ea8 (diff) | |
download | qpid-python-6574ab48665039ae9b8b1d2c5dd26ea94a3d23fa.tar.gz |
Scope exclusive queues to sessions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@637854 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.cpp')
-rw-r--r-- | cpp/src/qpid/broker/Queue.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/Queue.cpp b/cpp/src/qpid/broker/Queue.cpp index abe4f3f9a5..c4094a117b 100644 --- a/cpp/src/qpid/broker/Queue.cpp +++ b/cpp/src/qpid/broker/Queue.cpp @@ -46,7 +46,7 @@ using std::mem_fun; Queue::Queue(const string& _name, bool _autodelete, MessageStore* const _store, - const ConnectionToken* const _owner, + const OwnershipToken* const _owner, Manageable* parent) : name(_name), @@ -582,7 +582,7 @@ void Queue::tryAutoDelete(Broker& broker, Queue::shared_ptr queue) } -bool Queue::isExclusiveOwner(const ConnectionToken* const o) const +bool Queue::isExclusiveOwner(const OwnershipToken* const o) const { Mutex::ScopedLock locker(ownershipLock); return o == owner; @@ -594,7 +594,7 @@ void Queue::releaseExclusiveOwnership() owner = 0; } -bool Queue::setExclusiveOwner(const ConnectionToken* const o) +bool Queue::setExclusiveOwner(const OwnershipToken* const o) { Mutex::ScopedLock locker(ownershipLock); if (owner) { |