Fixed a bug in win32cpp::ApplicationThread where the calls stack where not protected by mutex.

This commit is contained in:
Daniel Önnerby 2008-11-13 19:34:17 +00:00
parent 2cf99985a4
commit 5aa1a94570

View File

@ -86,7 +86,10 @@ bool ApplicationThread::InMainThread()
//////////////////////////////////////////
void ApplicationThread::AddCall(CallClassBase *callClass)
{
this->calls.push_back(CallClassPtr(callClass));
{
boost::mutex::scoped_lock lock(this->mutex);
this->calls.push_back(CallClassPtr(callClass));
}
this->NotifyMainThread();
}