Lines Matching full:wait
423 * it before calling wait(). The implementation here has been un-optimized
437 // An auto-reset event used by the broadcast/signal thread to wait
451 status_t wait(WinCondition* condState, HANDLE hMutex, nsecs_t* abstime)
453 // Increment the wait count, avoiding race conditions.
456 //printf("+++ wait: incr waitersCount to %d (tid=%ld)\n",
468 // Atomically release the external mutex and wait on the semaphore.
472 //printf("+++ wait: awake (tid=%ld)\n", getThreadId());
483 //printf("+++ wait: lastWaiter=%d (wasBc=%d wc=%d)\n",
492 // Atomically signal the "waitersDone" event and wait until we
546 status_t Condition::wait(Mutex& mutex)
551 return ((WinCondition*)mState)->wait(condState, hMutex, NULL);
560 return ((WinCondition*)mState)->wait(condState, hMutex, &absTime);
591 * we wait until all of the threads have actually been woken before
616 // Wait for all awakened threads to acquire the counting semaphore.
782 mThreadExitedCondition.wait(mLock);