Example #1
0
    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);
    }
Example #2
0
 int QuickLock::LockWait(WaitCondition &condition, uint32_t msTimeout)
 {
   if (!LogVerify(m_initialized))
     return -1;
   return condition.Wait(&m_Lock, msTimeout);
 }