From 0da3d980e12b07677ffc63cd5601defe75cd273b Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 13 Jul 2011 09:54:32 +0000 Subject: 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 --- cpp/src/qpid/client/SessionImpl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src') 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); } -- cgit v1.2.1