From 101880a2a1ef8a036e221f892b6b4d3c7393c28f Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 15 Apr 2010 13:40:49 +0000 Subject: [PATCH] optimizing mutex (ref r30378) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1790 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmSessionContainer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/AmSessionContainer.cpp b/core/AmSessionContainer.cpp index 04954a1a..dc0e4e47 100644 --- a/core/AmSessionContainer.cpp +++ b/core/AmSessionContainer.cpp @@ -161,7 +161,6 @@ void AmSessionContainer::on_stop() void AmSessionContainer::stopAndQueue(AmSession* s) { - ds_mut.lock(); if (AmConfig::LogSessions) { INFO("session cleaner about to stop %s\n", @@ -169,9 +168,10 @@ void AmSessionContainer::stopAndQueue(AmSession* s) } s->stop(); + + ds_mut.lock(); d_sessions.push(s); - _run_cond.set(true); - + _run_cond.set(true); ds_mut.unlock(); }