Lines Matching refs:and
7 For example, if a worker thread is doing some long task and another thread has
9 object and the worker thread will signal it on exit (this example is not
15 other thread calls \helpref{Wait()}{wxconditionwait} and, just as with the
16 pthread conditions, the signal is then lost and so if you want to be sure that
18 initially locked and lock it again before calling
26 running and then waits until the main thread signals it to continue:
66 // create and run the thread but notice that it won't be able to
67 // exit (and signal its exit) before we unlock the mutex below
73 // which allows the thread to continue and starts waiting
81 Of course, here it would be much better to simply use a joinable thread and
118 Default and only constructor. The {\it mutex} must be locked by the caller
156 threads are waiting, the signal is lost and the condition would have to be
173 condition (this is why it must be locked prior to calling Wait) and puts the
176 again and returns.
180 and so it is important to ensure that the condition will be signalled after