fix syntax errors in the example
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,8 +44,8 @@ public:
|
|||||||
// tell the other(s) thread(s) that we're about to terminate: we must
|
// tell the other(s) thread(s) that we're about to terminate: we must
|
||||||
// lock the mutex first or we might signal the condition before the
|
// lock the mutex first or we might signal the condition before the
|
||||||
// waiting threads start waiting on it!
|
// waiting threads start waiting on it!
|
||||||
wxMutexLocker lock(m_mutex);
|
wxMutexLocker lock(*m_mutex);
|
||||||
m_condition.Broadcast(); // same as Signal() here -- one waiter only
|
m_condition->Broadcast(); // same as Signal() here -- one waiter only
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user