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

FX::FXReverseSpinLock Class Reference

The reverse spin lock unlocks its associated FXSpinLock when entering the scope, and automatically relocks it upon exiting the scope. More...

#include <FXSpinLock.h>

Public Member Functions

 FXReverseSpinLock (FXSpinLock &s)
 Construct and unlock associated spin lock.
 
FXSpinLockspinlock ()
 Return reference to associated spin lock.
 
void lock ()
 Lock spin lock.
 
FXbool trylock ()
 Return true if succeeded locking the spin lock.
 
FXbool locked ()
 Return true if spin lock is already locked.
 
void unlock ()
 Unlock spin lock.
 
 ~FXReverseSpinLock ()
 Destroy and relock associated spin lock.
 

Detailed Description

The reverse spin lock unlocks its associated FXSpinLock when entering the scope, and automatically relocks it upon exiting the scope.

Exceptions raised while in this region will automatically relock the spin lock upon leaving the enclosing scope.


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

Copyright © 1997-2020 Jeroen van der Zijp