describe better how to use ssociated mutex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,8 +13,12 @@ worker threads it already makes much more sense).
|
||||
|
||||
Note that a call to \helpref{Signal()}{wxconditionsignal} may happen before the
|
||||
other thread calls \helpref{Wait()}{wxconditionwait} and, just as with the
|
||||
pthread conditions, the signal is then lost and so if you want to be sure to
|
||||
get it you must use a mutex together with the condition variable.
|
||||
pthread conditions, the signal is then lost and so if you want to be sure that
|
||||
you don't miss it you must keep the mutex associated with the condition
|
||||
initially locked and lock it again before calling
|
||||
\helpref{Signal()}{wxconditionsignal}. Of course, this means that this call is
|
||||
going to block until \helpref{Wait()}{wxconditionwait} is called by another
|
||||
thread.
|
||||
|
||||
\wxheading{Example}
|
||||
|
||||
|
Reference in New Issue
Block a user