X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43e8916ff3fd271e55c9daa6660cb8ea5ff7efe6..038c03337f139d64f99d3334edfd1aa08354d9f0:/docs/latex/wx/conditn.tex diff --git a/docs/latex/wx/conditn.tex b/docs/latex/wx/conditn.tex index c39e2c1689..84510e7ee4 100644 --- a/docs/latex/wx/conditn.tex +++ b/docs/latex/wx/conditn.tex @@ -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; } @@ -105,6 +105,10 @@ None. +\wxheading{Library} + +\helpref{wxBase}{librarieslist} + \wxheading{See also} \helpref{wxThread}{wxthread}, \helpref{wxMutex}{wxmutex} @@ -172,7 +176,8 @@ Waits until the condition is signalled. This method atomically releases the lock on the mutex associated with this condition (this is why it must be locked prior to calling Wait) and puts the thread to sleep until \helpref{Signal}{wxconditionsignal} or -\helpref{Broadcast}{wxconditionbroadcast} is called. +\helpref{Broadcast}{wxconditionbroadcast} is called. It then locks the mutex +again and returns. Note that even if \helpref{Signal}{wxconditionsignal} had been called before Wait without waking up any thread, the thread would still wait for another one