A simple recursive lock class. More...
#include <pylon/TypeMappings.h>
Public Member Functions | |
CLock () | |
Constructs a lock object. The lock is not initially locked. | |
bool | TryLock () |
Tries to acquire the lock. If the lock currently locked by another thread the function returns immediately and returns false. | |
void | Lock () |
Acquires the lock. If the lock is currently held by another thread the function waits until the other thread releases the lock. | |
void | Unlock () |
Releases the lock. | |
A simple recursive lock class.