19 #ifndef PAGESPEED_KERNEL_THREAD_PTHREAD_RW_LOCK_H_
20 #define PAGESPEED_KERNEL_THREAD_PTHREAD_RW_LOCK_H_
26 namespace net_instaweb {
41 pthread_rwlock_t rwlock_;
42 pthread_rwlockattr_t attr_;
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.
Definition: thread_system.h:61
virtual void ReaderLock()
Block until this Mutex is free, or shared, then acquire a share of it.
virtual void ReaderUnlock()
Release a read share of this Mutex.
virtual void Lock()
Block until mutex is available, then take the mutex.
Implementation of RWLock for Pthread mutexes.
Definition: pthread_rw_lock.h:29
virtual bool ReaderTryLock()