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

FX::FXMutexLock Class Reference

An easy way to establish a correspondence between a C++ scope and a critical section is to simply declare an FXMutexLock at the beginning of the scope. More...

#include <FXThread.h>

List of all members.

Public Member Functions

 FXMutexLock (FXMutex &m)
FXbool lock ()
FXbool unlock ()


Detailed Description

An easy way to establish a correspondence between a C++ scope and a critical section is to simply declare an FXMutexLock at the beginning of the scope.

The mutex will be automatically released when the scope is left (either by natural means or by means of an exception.

Copyright © 1997-2004 Jeroen van der Zijp