Fawkes API  Fawkes Development Version
fawkes::RefCountRWLock Class Reference

Read/write lock with reference counting. More...

#include <core/threading/refc_rwlock.h>

Inheritance diagram for fawkes::RefCountRWLock:

List of all members.

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
RefCount
Author:
Tim Niemueller

Constructor & Destructor Documentation

fawkes::RefCountRWLock::RefCountRWLock ( ReadWriteLock::ReadWriteLockPolicy  policy = ReadWriteLock::RWLockPolicyPreferWriter)

Constructor.

Parameters:
policyPolicy, 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.


The documentation for this class was generated from the following files: