Lines Matching defs:mutex
309 internal::Mutex* mutex = static_cast<internal::Mutex*>(data);
310 mutex->Lock();
311 mutex->Unlock();
319 internal::Mutex mutex;
321 internal::MutexLock lock(&mutex);
326 const int status = pthread_create(&thread_id, &attr, &ThreadFunc, &mutex);
1053 explicit AtomicCounterWithMutex(Mutex* mutex) :
1054 value_(0), mutex_(mutex), random_(42) {}
1064 // On POSIX, locking a mutex puts up a memory barrier. We cannot use
1101 // Tests that the mutex only lets one thread at a time to lock it.
1103 Mutex mutex;
1104 AtomicCounterWithMutex locked_counter(&mutex);
1123 // If the mutex lets more than one thread to increment the counter at a
1212 // to protect this acccess with a mutex.