Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
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. | |
FXSpinLock & | spinlock () |
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. | |
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.
Copyright © 1997-2022 Jeroen van der Zijp |