A scoped locking utility. More...
#include <SGGuard.hxx>
Public Member Functions | |
SGGuard (SGLOCK &l) | |
Create an SGGuard object and lock the passed lockable object. | |
~SGGuard () | |
Destroy this object and unlock the locakable object. |
A scoped locking utility.
An SGGuard object locks its synchronization object during creation and automatically unlocks it when it goes out of scope.
Definition at line 10 of file SGGuard.hxx.
Create an SGGuard object and lock the passed lockable object.
SGLOCK | A lockable object. |
Definition at line 18 of file SGGuard.hxx.