From a56816f9ab5b5c62ef660564079a1cbfbb323931 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 1 Nov 2007 14:44:30 +0000 Subject: locking around access to the unacked out buffer git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@591026 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/SessionState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/tests/SessionState.cpp') diff --git a/cpp/src/tests/SessionState.cpp b/cpp/src/tests/SessionState.cpp index f021861cd4..b8d0560c48 100644 --- a/cpp/src/tests/SessionState.cpp +++ b/cpp/src/tests/SessionState.cpp @@ -49,7 +49,7 @@ void sent(SessionState& session, const std::string& frames) { // Received chars as frames void received(SessionState& session, const std::string& frames) { for_each(frames.begin(), frames.end(), - bind(&SessionState::received, session, bind(frame, _1))); + bind(&SessionState::received, ref(session), bind(frame, _1))); } // Make a string from a ReplayRange. -- cgit v1.2.1