void finishAllThreads() { // Only original root thread can call this. OVR_ASSERT(pthread_self() == RootThreadId); Mutex::Locker lock(&ThreadMutex); while (ThreadSet.GetSize() != 0) ThreadsEmpty.Wait(&ThreadMutex); }
int QuickLock::LockWait(WaitCondition &condition, uint32_t msTimeout) { if (!LogVerify(m_initialized)) return -1; return condition.Wait(&m_Lock, msTimeout); }