LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::readWriteLock Class Reference

lti read-write synchronisation class More...

#include <ltiReadWriteLock.h>

Inheritance diagram for lti::readWriteLock:
Inheritance graph
[legend]
Collaboration diagram for lti::readWriteLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 readWriteLock ()
virtual ~readWriteLock ()
void lockRead () const
bool tryLockRead () const
void lockWrite () const
bool tryLockWrite () const
void unlock () const
virtual const char * getTypeName () const

Detailed Description

lti read-write synchronisation class


Constructor & Destructor Documentation

lti::readWriteLock::readWriteLock (  ) 

default constructor

virtual lti::readWriteLock::~readWriteLock (  )  [virtual]

destructor


Member Function Documentation

virtual const char* lti::readWriteLock::getTypeName (  )  const [virtual]

returns the name of this type

Reimplemented from lti::object.

void lti::readWriteLock::lockRead (  )  const

wait until read-write lock becomes available and lock it for read access

void lti::readWriteLock::lockWrite (  )  const

wait until read-write lock becomes available and lock it for write access

bool lti::readWriteLock::tryLockRead (  )  const

Try to lock, but do not block.

Return true if locking was successful.

bool lti::readWriteLock::tryLockWrite (  )  const

Try to lock, but do not block.

Return true if locking was successful.

void lti::readWriteLock::unlock (  )  const

unlock read-write lock from read or write access


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

Generated on Sat Apr 10 15:28:53 2010 for LTI-Lib by Doxygen 1.6.1