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:
Vadim Zeitlin 2007-10-29 12:13:53 +00:00
parent 20e44f4f27
commit 8cc1b7b526

View File

@ -44,8 +44,8 @@ public:
// 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
// waiting threads start waiting on it!
wxMutexLocker lock(m_mutex);
m_condition.Broadcast(); // same as Signal() here -- one waiter only
wxMutexLocker lock(*m_mutex);
m_condition->Broadcast(); // same as Signal() here -- one waiter only
return 0;
}