fawkes::RefCountRWLock Class Reference
[Multi-Threading tools, Fawkes Core Library]
Read/write lock with reference counting.
More...
#include <core/threading/refc_rwlock.h>
Inheritance diagram for fawkes::RefCountRWLock:

Public Member Functions | |
| RefCountRWLock (ReadWriteLock::ReadWriteLockPolicy policy=ReadWriteLock::RWLockPolicyPreferWriter) | |
| Constructor. | |
| virtual | ~RefCountRWLock () |
| Destructor. | |
Detailed Description
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.
- See also:
- ReadWriteLock
Definition at line 33 of file refc_rwlock.h.
Constructor & Destructor Documentation
| fawkes::RefCountRWLock::RefCountRWLock | ( | ReadWriteLock::ReadWriteLockPolicy | policy = ReadWriteLock::RWLockPolicyPreferWriter |
) |
Constructor.
- Parameters:
-
policy Policy, see ReadWriteLock::ReadWriteLock() for more info on this.
Definition at line 44 of file refc_rwlock.cpp.
| fawkes::RefCountRWLock::~RefCountRWLock | ( | ) | [virtual] |
The documentation for this class was generated from the following files:
- src/libs/core/threading/refc_rwlock.h
- src/libs/core/threading/refc_rwlock.cpp

