API Guides > ConceptRT 3.x
AutoLock Class Reference

Automatic lock. More...

Detailed Description

Automatic lock.

Public Member Methods

 AutoLock ()
 Default constructor. More...
 
 AutoLock (ILockable &lockable)
 Default constructor. More...
 
 ~AutoLock ()
 Destructor. More...
 
void Lock (ILockable &lockable)
 Locks. More...
 
void Unlock ()
 Unlocks this object. More...
 
bool GetLocked ()
 Gets the locked. More...
 

Constructor & Destructor Documentation

AutoLock ( )
inline

Default constructor.

AutoLock ( ILockable lockable)
inline

Default constructor.

Parameters
lockable[in,out] The lockable.
~AutoLock ( )
inline

Destructor.

Methods Documentation

bool GetLocked ( )
inline

Gets the locked.

Returns
true if it succeeds, false if it fails.
void Lock ( ILockable lockable)
inline

Locks.

Parameters
lockable[in,out] The lockable.
void Unlock ( )
inline

Unlocks this object.