BALL::TReadWriteLock< ReadWriteLockType > Class Template Reference

This class provides a very thin wrapper around different read-write mutex types. More...

#include <mutex.h>

List of all members.


Public Member Functions

TReadWriteLock (bool is_recursive=false)

Detailed Description

template<class ReadWriteLockType>
class BALL::TReadWriteLock< ReadWriteLockType >

This class provides a very thin wrapper around different read-write mutex types.

As default, BALL supports QReadWriteLock, but if it has been configured with boost::thread support enabled, boost::mutex can also be used. Similarly, we can simply provide instantiations using, e.g, Intel thread building blocks.

A BALL-mutex needs to provide the functions void lockForRead(), void lockForWrite(), void unlock(), bool tryLockForRead(), and bool tryLockForWrite().


Generated on Thu Aug 6 18:30:49 2009 for BALL by doxygen 1.5.8