diff options
| author | Gordon Sim <gsim@apache.org> | 2009-11-17 10:52:33 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2009-11-17 10:52:33 +0000 |
| commit | dfeb9089cd7702cb70e170fcf5f5d01cbbde080c (patch) | |
| tree | a8965e1124fda146dedca255f912ed6e0a69a643 /cpp/src/qpid/client/amqp0_10/SessionImpl.h | |
| parent | 2b9be90fca9e4e47cc6b47d16dd97d6bfaf0931e (diff) | |
| download | qpid-python-dfeb9089cd7702cb70e170fcf5f5d01cbbde080c.tar.gz | |
QPID-664: Added getReceiver()/getSender() methods to session in new api.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881236 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/amqp0_10/SessionImpl.h')
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/SessionImpl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/SessionImpl.h b/cpp/src/qpid/client/amqp0_10/SessionImpl.h index f3018b9685..872f66801d 100644 --- a/cpp/src/qpid/client/amqp0_10/SessionImpl.h +++ b/cpp/src/qpid/client/amqp0_10/SessionImpl.h @@ -65,6 +65,9 @@ class SessionImpl : public qpid::messaging::SessionImpl qpid::messaging::Sender createSender(const qpid::messaging::Address& address); qpid::messaging::Receiver createReceiver(const qpid::messaging::Address& address); + qpid::messaging::Sender getSender(const std::string& name) const; + qpid::messaging::Receiver getReceiver(const std::string& name) const; + bool nextReceiver(qpid::messaging::Receiver& receiver, qpid::sys::Duration timeout); qpid::messaging::Receiver nextReceiver(qpid::sys::Duration timeout); @@ -99,7 +102,7 @@ class SessionImpl : public qpid::messaging::SessionImpl typedef std::map<std::string, qpid::messaging::Receiver> Receivers; typedef std::map<std::string, qpid::messaging::Sender> Senders; - qpid::sys::Mutex lock; + mutable qpid::sys::Mutex lock; ConnectionImpl& connection; qpid::client::Session session; AddressResolution resolver; |
