Function CSPThreadLockBase::TryLock()
Description:
Tries to increase the thread lock count by one. If the object is already locked by another thread, the lock is unsuccessful and the member function returns immediately.
 |
Prototype:
virtual bool TryLock() = 0;
Arguments:
No arguments (void).
Return value:
Returns true if the lock is successful. If another thread has locked the object it returns false.
Remarks:
This member function must be overloaded. When implementing an overload, if there is no meaning for a TryLock operation, the overloaded TryLock function must return false.
See also:
member functions GetLockCount(), Lock(), Unlock()
|
|