Go to the documentation of this file.
60 virtual const char*
what()
const throw() {
return "Thread::RWLockError";}
97 pthread_rwlock_t pthr_rwlock;
209 int unlock() {
return pthread_rwlock_unlock(&pthr_rwlock);}
230 ~RWLock() {pthread_rwlock_destroy(&pthr_rwlock);}
483 int unlock() {
int ret = rw_lock.
unlock();
if (owner) owner = ret;
return ret;}
766 int unlock() {
int ret = rw_lock.
unlock();
if (owner) owner = ret;
return ret;}
int trylock()
Definition: rw_lock.h:305
Definition: application.h:45
int lock()
Definition: rw_lock.h:730
~ReaderTrackLock()
Definition: rw_lock.h:551
WriterTrackLock(RWLock &rw_lock_, DeferLock tag)
Definition: rw_lock.h:810
int unlock()
Definition: rw_lock.h:641
ReaderTrackLock(RWLock &rw_lock_, DeferLock tag)
Definition: rw_lock.h:541
bool is_owner() const
Definition: rw_lock.h:777
A scoped locking class for exception safe RWLock write locking which tracks the status of its read-wr...
Definition: rw_lock.h:698
RWLock()
Definition: rw_lock.h:222
int lock()
Definition: rw_lock.h:441
int writer_trylock()
Definition: rw_lock.h:186
ReaderTrackLock(RWLock &rw_lock_)
Definition: rw_lock.h:516
bool is_owner() const
Definition: rw_lock.h:495
A scoped locking class for exception safe RWLock read locking which tracks the status of its read-wri...
Definition: rw_lock.h:406
int reader_lock()
Definition: rw_lock.h:132
int reader_trylock()
Definition: rw_lock.h:153
~WriterLock()
Definition: rw_lock.h:670
ReaderLock(RWLock &rw_lock_)
Definition: rw_lock.h:355
int trylock()
Definition: rw_lock.h:614
int lock()
Definition: rw_lock.h:596
int lock()
Definition: rw_lock.h:280
int unlock()
Definition: rw_lock.h:766
WriterTrackLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:798
int trylock()
Definition: rw_lock.h:747
~RWLock()
Definition: rw_lock.h:230
ReaderLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:368
WriterLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:662
WriterLock(RWLock &rw_lock_)
Definition: rw_lock.h:650
DeferLock
Definition: mutex.h:184
int writer_lock()
Definition: rw_lock.h:173
virtual const char * what() const
Definition: rw_lock.h:60
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
~ReaderLock()
Definition: rw_lock.h:376
Locked
Definition: mutex.h:181
ReaderTrackLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:529
int unlock()
Definition: rw_lock.h:483
Provides wrapper classes for pthread mutexes and condition variables, and scoped locking classes for ...
A wrapper class for pthread read-write locks.
Definition: rw_lock.h:96
A scoped locking class for exception safe RWLock read locking.
Definition: rw_lock.h:243
int unlock()
Definition: rw_lock.h:334
int trylock()
Definition: rw_lock.h:463
A scoped locking class for exception safe RWLock write locking.
Definition: rw_lock.h:564
int unlock()
Definition: rw_lock.h:209
WriterTrackLock(RWLock &rw_lock_)
Definition: rw_lock.h:786
~WriterTrackLock()
Definition: rw_lock.h:819