From 1644c002ac05fdc9cb88c9698aa6e4d20dcc4fb3 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@591026 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/SessionState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src/tests/SessionState.cpp') diff --git a/qpid/cpp/src/tests/SessionState.cpp b/qpid/cpp/src/tests/SessionState.cpp index f021861cd4..b8d0560c48 100644 --- a/qpid/cpp/src/tests/SessionState.cpp +++ b/qpid/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