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()
CSPThreadLock | Other support classes | Class Categories | Online help home | Back
www.micronovae.com Copyright © 2002 - 2004 Micronovae Ltd