Pylon::CLock#
#include <pylon/TypeMappings.h>
Public Functions#
Name | |
---|---|
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. |
Detailed Description#
A simple recursive lock class.
See: AutoLock
Public Functions Documentation#
function CLock#
Constructs a lock object. The lock is not initially locked.
function TryLock#
Tries to acquire the lock. If the lock currently locked by another thread the function returns immediately and returns false.
function Lock#
Acquires the lock. If the lock is currently held by another thread the function waits until the other thread releases the lock.
function Unlock#
Releases the lock.