19 #ifndef PAGESPEED_KERNEL_THREAD_PTHREAD_MUTEX_H_
20 #define PAGESPEED_KERNEL_THREAD_PTHREAD_MUTEX_H_
26 namespace net_instaweb {
41 pthread_mutex_t mutex_;
virtual void Unlock()
Release the mutex, permitting a blocked lock operation (if any) to proceed.
virtual bool TryLock()
Attempt to take mutex, true on success, false if held by another thread.
Implementation of ThreadSystem::CondvarCapableMutexMutex for Pthread mutexes.
Definition: pthread_mutex.h:29
Definition: thread_system.h:46
virtual void Lock()
Block until mutex is available, then take the mutex.
Definition: pthread_condvar.h:29
virtual ThreadSystem::Condvar * NewCondvar()
Creates a new condition variable associated with 'this' mutex.