#include <Lock.h>
Public Member Functions | |
| Lock (Synchronizable *object, const bool intiallyLocked=true) | |
| virtual | ~Lock () |
| void | lock () |
| void | unlock () |
| bool | isLocked () const |
Private Attributes | |
| bool | locked |
| Synchronizable * | syncObject |
|
||||||||||||
|
Constructor - initializes the object member and locks the object if desired.
|
|
|
Destructor - Unlocks the object if it is locked. |
|
|
Indicates whether or not the object is locked.
|
|
|
Locks the object. |
|
|
Unlocks the object. |
|
|
Flag to indicate whether or not this object has locked the sync object. |
|
|
The synchronizable object to lock/unlock. |
1.4.5