Fawkes API
Fawkes Development Version
|
Read/write lock with reference counting. More...
#include <core/threading/refc_rwlock.h>
Public Member Functions | |
RefCountRWLock (ReadWriteLock::ReadWriteLockPolicy policy=ReadWriteLock::RWLockPolicyPreferWriter) | |
Constructor. | |
virtual | ~RefCountRWLock () |
Destructor. |
Read/write lock with reference counting.
This class is a combination of ReadWriteLock and RefCount. A reference count is maintained for the class to allow for automatic destruction when the last user calls unref(). The class otherwise acts as a normal ReadWriteLock, you just should not delete the instance but rather unref() it.
fawkes::RefCountRWLock::RefCountRWLock | ( | ReadWriteLock::ReadWriteLockPolicy | policy = ReadWriteLock::RWLockPolicyPreferWriter | ) |
Constructor.
policy | Policy, see ReadWriteLock::ReadWriteLock() for more info on this. |
Definition at line 44 of file refc_rwlock.cpp.
fawkes::RefCountRWLock::~RefCountRWLock | ( | ) | [virtual] |
Destructor.
Definition at line 50 of file refc_rwlock.cpp.