Lines Matching defs:Mutex
58 static Mutex* atomicallyInitializedStaticMutex;
66 static Mutex& threadMapMutex()
68 DEFINE_STATIC_LOCAL(Mutex, mutex, ());
69 return mutex;
75 atomicallyInitializedStaticMutex = new Mutex;
252 Mutex::Mutex()
257 Mutex::~Mutex()
262 void Mutex::lock()
268 bool Mutex::tryLock()
281 void Mutex::unlock()
353 void ThreadCondition::wait(Mutex& mutex)
355 int result = pthread_cond_wait(&m_condition, &mutex.impl());
359 bool ThreadCondition::timedWait(Mutex& mutex, double absoluteTime)
365 wait(mutex);
376 return pthread_cond_timedwait(&m_condition, &mutex.impl(), &targetTime) == 0;