Module: sems Branch: master Commit: 4b0a6d07a672cde64088cb35f685c3cebd94b23b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=4b0a6d07a672cde64088cb35f685c3cebd94b23b
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Thu Dec 9 16:07:09 2010 +0100 threadpool: b/f: process events in queue at start b/f: process events that are in session event queue at startup --- core/AmSessionProcessor.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/core/AmSessionProcessor.cpp b/core/AmSessionProcessor.cpp index ebcecb1..4c758d2 100644 --- a/core/AmSessionProcessor.cpp +++ b/core/AmSessionProcessor.cpp @@ -171,6 +171,9 @@ void AmSessionProcessorThread::startSession(AmSession* s) { // add this to be scheduled events.postEvent(new AmSessionProcessorThreadAddEvent(s)); + // trigger processing of events already in queue at startup + notify(s); + // wakeup the thread runcond.set(true); } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
