tinythreadlib::ReadWriteLock Class Reference

Recursive read / write lock. More...

#include <tinythreadlib.hpp>

List of all members.

Public Member Functions

void lockForRead () throw ()
void lockForWrite () throw ()
void releaseReadLock () throw ()
void releaseWriteLock () throw ()

Detailed Description

Recursive read / write lock.

Represents a read / write lock. For configurations which support real read / write locks, this class is a more efficient Mutex replacement which does not perform any locking for read-only accesses. If your configration does not support real read / write locks, this class behaves exactly like a Mutex, except that recursive write locks cause a deadlock, if TINYTHREADLIB_RWLOCK_MUTEX_SIMULATE_DEADLOCKS is defined.

Definition at line 330 of file tinythreadlib.hpp.


Member Function Documentation

void tinythreadlib::ReadWriteLock::lockForRead (  )  throw () [inline]

Lock the read / write lock for read accesses. Recursive calls are possible, as long as no write locks are performed!

Definition at line 398 of file tinythreadlib.hpp.

void tinythreadlib::ReadWriteLock::lockForWrite (  )  throw () [inline]

Lock the read / write lock for write accesses. Recursive calls are not possible and cause a deadlock!

Definition at line 439 of file tinythreadlib.hpp.

void tinythreadlib::ReadWriteLock::releaseReadLock (  )  throw () [inline]

Release the read / write lock which was locked for read accesses.

Definition at line 484 of file tinythreadlib.hpp.

void tinythreadlib::ReadWriteLock::releaseWriteLock (  )  throw () [inline]

Release the read / write lock which was locked for write accesses.

Definition at line 507 of file tinythreadlib.hpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Defines

Generated on Mon Apr 19 22:37:45 2010 for TinyThreadLib by  doxygen 1.6.1