24 #ifndef __CORE_THREADING_SCOPED_RWLOCK_H_ 25 #define __CORE_THREADING_SCOPED_RWLOCK_H_ 27 #include <core/utils/refptr.h> 43 bool initially_lock =
true);
45 bool initially_lock =
true);
Fawkes library namespace.
ScopedRWLock(RefPtr< ReadWriteLock > rwlock, LockType lock_type=LOCK_WRITE, bool initially_lock=true)
Constructor.
Read/write lock to allow multiple readers but only a single writer on the resource at a time...
void relock()
Lock this rwlock, again.
LockType
What to lock for.
RefPtr<> is a reference-counting shared smartpointer.
~ScopedRWLock()
Destructor.
void unlock()
Unlock the rwlock.