From 36cfeb13b8ad4b532f7f9c2b48ac2353e6217bcd Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 31 Mar 2008 12:51:36 +0000 Subject: Re-introduced old 'no-local' behaviour for exclusive queues via a proprietary arg to queue.declare. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@642981 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionState.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src/qpid/broker/SessionState.cpp') diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp index 19fb0a4a79..d719bbe145 100644 --- a/cpp/src/qpid/broker/SessionState.cpp +++ b/cpp/src/qpid/broker/SessionState.cpp @@ -96,6 +96,11 @@ ConnectionState& SessionState::getConnection() { return getHandler()->getConnection(); } +bool SessionState::isLocal(const ConnectionToken* t) const +{ + return isAttached() && &(handler->getConnection()) == t; +} + void SessionState::detach() { getConnection().outputTasks.removeOutputTask(&semanticState); Mutex::ScopedLock l(lock); -- cgit v1.2.1