42 #ifndef _PTHREADREADWRITELOCK_HH_ 43 #define _PTHREADREADWRITELOCK_HH_ 107 pthread_rwlock_t _lock;
108 const pthread_rwlockattr_t *_attr;
115 #endif // _PTHREADREADWRITELOCK_HH_ This class is just a simple wrapper around pthread_rwlock* functions from the pthread library...
Definition: DwmPthreadReadWriteLock.hh:58
bool Unlock()
Unlocks. Returns true on success, false on failure.
bool WriteLock()
Acquires a write lock. Returns true on success, false on failure.
Definition: DwmBZ2IO.hh:67
int TryWriteLock()
Acquires a write lock.
~ReadWriteLock()
Destructor.
bool ReadLock()
Acquires a read lock.
int TryReadLock()
Acquires a read lock.
ReadWriteLock(const pthread_rwlockattr_t *attr=0)
Constructor.