Function CSPThreadLock::Unlock()
Description:
It decrements the thread lock count by one.
 |
Prototype:
unsigned long Unlock();
Arguments:
No arguments (void).
Return value:
It returns the current thread lock count.
Remarks:
If the thread lock count is zero, no action is taken.
Examples:
//Global scope declarations CSPThreadLock ThreadLock; int a = 0;
... ...
//Thread sensitive code ThreadLock.Lock(); a += 2; ThreadLock.Unlock();
See also:
member functions Lock(), TryLock()
|
|