mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 17:58:29 +00:00
Fixed a bug in win32cpp::ApplicationThread where the calls stack where not protected by mutex.
This commit is contained in:
parent
2cf99985a4
commit
5aa1a94570
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user