fawkes::RefCountRWLock Class Reference
[Multi-Threading toolsFawkes Core Library]

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

#include <core/threading/refc_rwlock.h>

Inheritance diagram for fawkes::RefCountRWLock:
Inheritance graph
[legend]

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

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]

Destructor.

Definition at line 50 of file refc_rwlock.cpp.


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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1