threadpool: b/f: process events in queue at start

b/f: process events that are in session event queue at startup
sayer/1.4-spce2.6
Stefan Sayer 16 years ago
parent 6337394b55
commit 4b0a6d07a6

@ -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);
}

Loading…
Cancel
Save