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

FXEX::FXFastMutex Class Reference

A Fast mutex doesn't implement mutex recursion or error checking ie you cant lock it more than once, otherwise it simply blocks which can sometimes be useful. More...

#include <FXFastMutex.h>

Inheritance diagram for FXEX::FXFastMutex::

FXEX::FXLockable List of all members.

Public Methods

 FXFastMutex ()
void lock ()
FXbool trylock (FXuint ms)
void unlock ()
 ~FXFastMutex ()

Detailed Description

A Fast mutex doesn't implement mutex recursion or error checking ie you cant lock it more than once, otherwise it simply blocks which can sometimes be useful.

Note: this class doesn't store any internal state, such that, if you lock it, it is up to you to unlock it.

Definition at line 38 of file FXFastMutex.h.


Constructor & Destructor Documentation

FXEX::FXFastMutex::FXFastMutex
 

create me a fast mutex :-).

FXEX::FXFastMutex::~FXFastMutex
 

dtor.


Member Function Documentation

void FXEX::FXFastMutex::lock [virtual]
 

lock mutex.

Reimplemented from FXEX::FXLockable.

FXbool FXEX::FXFastMutex::trylock FXuint ms [virtual]
 

for a fastlock, trylock fails when we cant lock immediately (ie ms is ignored).

Reimplemented from FXEX::FXLockable.

void FXEX::FXFastMutex::unlock [virtual]
 

release mutex lock.

Reimplemented from FXEX::FXLockable.