summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-07-13 09:54:32 +0000
committerGordon Sim <gsim@apache.org>2011-07-13 09:54:32 +0000
commit0da3d980e12b07677ffc63cd5601defe75cd273b (patch)
tree710572168c02ae76b0eaf71892a6766badeb3923
parent7468205a61d65aeff8a4bf7dcb87f0e5a4619949 (diff)
downloadqpid-python-0da3d980e12b07677ffc63cd5601defe75cd273b.tar.gz
QPID-3355: Declare the wait while waiting for completion. Patch from Jason Dillaman.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1145936 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/client/SessionImpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp
index b507625b11..7cf4ef648e 100644
--- a/cpp/src/qpid/client/SessionImpl.cpp
+++ b/cpp/src/qpid/client/SessionImpl.cpp
@@ -170,6 +170,7 @@ Demux& SessionImpl::getDemux()
void SessionImpl::waitForCompletion(const SequenceNumber& id)
{
Lock l(state);
+ sys::Waitable::ScopedWait w(state);
waitForCompletionImpl(id);
}