Go to the documentation of this file.
60 virtual const char*
what()
const throw() {
return "Thread::RWLockError";}
104 pthread_rwlock_t pthr_rwlock;
213 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;}
762 int unlock() {
int ret = rw_lock.
unlock();
if (owner) owner = ret;
return ret;}
int trylock()
Definition: rw_lock.h:307
Definition: application.h:44
int lock()
Definition: rw_lock.h:730
~ReaderTrackLock()
Definition: rw_lock.h:547
WriterTrackLock(RWLock &rw_lock_, DeferLock tag)
Definition: rw_lock.h:798
int unlock()
Definition: rw_lock.h:637
ReaderTrackLock(RWLock &rw_lock_, DeferLock tag)
Definition: rw_lock.h:533
bool is_owner() const
Definition: rw_lock.h:771
A scoped locking class for exception safe RWLock write locking which tracks the status of its read-wr...
Definition: rw_lock.h:694
RWLock()
Definition: rw_lock.h:224
int lock()
Definition: rw_lock.h:445
int writer_trylock()
Definition: rw_lock.h:192
ReaderTrackLock(RWLock &rw_lock_)
Definition: rw_lock.h:512
bool is_owner() const
Definition: rw_lock.h:493
A scoped locking class for exception safe RWLock read locking which tracks the status of its read-wri...
Definition: rw_lock.h:406
RWLock & operator=(const RWLock &)=delete
int reader_lock()
Definition: rw_lock.h:144
int reader_trylock()
Definition: rw_lock.h:163
~WriterLock()
Definition: rw_lock.h:666
ReaderLock(RWLock &rw_lock_)
Definition: rw_lock.h:353
int trylock()
Definition: rw_lock.h:612
int lock()
Definition: rw_lock.h:596
int lock()
Definition: rw_lock.h:284
int unlock()
Definition: rw_lock.h:762
RWLock::ReaderTrackLock & operator=(const RWLock::ReaderTrackLock &)=delete
WriterTrackLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:788
int trylock()
Definition: rw_lock.h:745
~RWLock()
Definition: rw_lock.h:230
ReaderLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:364
WriterLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:654
WriterLock(RWLock &rw_lock_)
Definition: rw_lock.h:644
DeferLock
Definition: mutex.h:199
int writer_lock()
Definition: rw_lock.h:181
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:196
ReaderTrackLock(RWLock &rw_lock_, Locked tag)
Definition: rw_lock.h:523
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:103
RWLock::ReaderLock & operator=(const RWLock::ReaderLock &)=delete
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:465
A scoped locking class for exception safe RWLock write locking.
Definition: rw_lock.h:560
RWLock::WriterLock & operator=(const RWLock::WriterLock &)=delete
int unlock()
Definition: rw_lock.h:213
RWLock::WriterTrackLock & operator=(const RWLock::WriterTrackLock &)=delete
WriterTrackLock(RWLock &rw_lock_)
Definition: rw_lock.h:778
~WriterTrackLock()
Definition: rw_lock.h:811