BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
BALL::TMutex< MutexType > Class Template Reference

#include <BALL/SYSTEM/mutex.h>

Inheritance diagram for BALL::TMutex< MutexType >:
MutexType

Public Member Functions

 TMutex (bool is_recursive=false)
 

Detailed Description

template<class MutexType>
class BALL::TMutex< MutexType >

This class provides a very thin wrapper around different mutex types. As default, BALL supports QMutex, 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 lock(), void unlock(), and bool tryLock().

Definition at line 47 of file mutex.h.

Constructor & Destructor Documentation

template<class MutexType>
BALL::TMutex< MutexType >::TMutex ( bool  is_recursive = false)
inline

Definition at line 51 of file mutex.h.