Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXNullMutex Class Reference

A null mutex is a mutex, whic provides the API of a mutex, but doesn't provide any locking facilities. More...

#include <FXNullMutex.h>

Inheritance diagram for FXEX::FXNullMutex::

FXEX::FXLockable List of all members.

Public Methods

 FXNullMutex ()
void lock ()
FXbool trylock (FXint ms)
void unlock ()
 ~FXNullMutex ()

Detailed Description

A null mutex is a mutex, whic provides the API of a mutex, but doesn't provide any locking facilities.

You would usually use this object during the development stage to iron out any design flaws.

The object error checks to make sure you havn't unlocked too many times. It also prints the number locks held on destruction.

Definition at line 38 of file FXNullMutex.h.


Constructor & Destructor Documentation

FXEX::FXNullMutex::FXNullMutex
 

create me a null mutex :-).

FXEX::FXNullMutex::~FXNullMutex
 

dtor.


Member Function Documentation

void FXEX::FXNullMutex::lock [inline, virtual]
 

lock mutex.

Reimplemented from FXEX::FXLockable.

Definition at line 45 of file FXNullMutex.h.

FXbool FXEX::FXNullMutex::trylock FXint ms [inline]
 

try to lock the mutex, within some period.

Definition at line 48 of file FXNullMutex.h.

void FXEX::FXNullMutex::unlock [virtual]
 

release mutex lock.

Reimplemented from FXEX::FXLockable.