ParCompMark::Mutex Class Reference

#include <PCMMutex.h>

Inheritance diagram for ParCompMark::Mutex:

Inheritance graph
[legend]
Collaboration diagram for ParCompMark::Mutex:

Collaboration graph
[legend]
List of all members.

Detailed Description

Mutual exception lock.

Definition at line 54 of file PCMMutex.h.


Public Member Functions

Constructors & destructor
 Mutex ()
 Default constructor.
virtual ~Mutex ()
 The destructor.
Methods
virtual void lock ()
 Lock the mutex.
virtual bool trylock ()
 Try locking the mutex.
virtual void unlock ()
 Unlock the mutex.

Protected Attributes

Variables
pthread_mutex_t mMutex
 Guard mutex.

Constructor & Destructor Documentation

ParCompMark::Mutex::Mutex (  )  [inline]

Default constructor.

Definition at line 167 of file PCMMutex.h.

ParCompMark::Mutex::~Mutex (  )  [inline, virtual]

The destructor.

This class has virtual destructor.

Definition at line 181 of file PCMMutex.h.


Member Function Documentation

bool ParCompMark::Mutex::trylock (  )  [inline, virtual]

Try locking the mutex.

Returns:
True if the locking was successful.

Implements ParCompMark::Lock.

Definition at line 207 of file PCMMutex.h.

void ParCompMark::Mutex::unlock (  )  [inline, virtual]


Member Data Documentation

pthread_mutex_t ParCompMark::Mutex::mMutex [protected]

Guard mutex.

Remarks:
This is own attribute of this class.

Definition at line 78 of file PCMMutex.h.


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