diff options
author | Alan Conway <aconway@apache.org> | 2007-02-14 15:02:10 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-02-14 15:02:10 +0000 |
commit | 8189a1f1f3d27d9ad7e0de50ed9e924e63d74aec (patch) | |
tree | f43ed248e99d67639f4330e604a0ed718f736d22 /cpp/lib/broker/BrokerChannel.cpp | |
parent | 20a5f81e8bbf8d4429d55fffb47278e7ade81c17 (diff) | |
download | qpid-python-8189a1f1f3d27d9ad7e0de50ed9e924e63d74aec.tar.gz |
* cpp/lib/common/sys/ProducerConsumer.h:
General-purpose producer-consumer synchronization. Anywhere we have
producer/consumer threads in qpid we should re-use this sync object
rather than re-inventing the synchronization each time.
* cpp/lib/common/sys/AtomicCount.h: Separated ScopedIncrement/ScopedDecrement
into ScopedIncrement.h
* cpp/tests/InProcessBroker.h: Added class InProcessBrokerClient, a
self contained in-process client + broker convenience for tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@507560 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerChannel.cpp')
-rw-r--r-- | cpp/lib/broker/BrokerChannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/lib/broker/BrokerChannel.cpp b/cpp/lib/broker/BrokerChannel.cpp index 674d0e9505..fc82e3111d 100644 --- a/cpp/lib/broker/BrokerChannel.cpp +++ b/cpp/lib/broker/BrokerChannel.cpp @@ -327,9 +327,9 @@ void Channel::handleMethodInContext( ) { try{ - if(id != 0 && !method->isA<ChannelOpenBody>() && !isOpen()) { + if(getId() != 0 && !method->isA<ChannelOpenBody>() && !isOpen()) { std::stringstream out; - out << "Attempt to use unopened channel: " << id; + out << "Attempt to use unopened channel: " << getId(); throw ConnectionException(504, out.str()); } else { method->invoke(*adapter, context); |