Archived
This forum has been archived. Please start a new discussion on GitHub.
Doc: return value of RecMutex::tryLock()
n2503v
in Comments
What does RecMutex::tryLock() return when the mutex is already locked by the same thread? I assume it's FALSE but the manual seems to say something different.
Manual sec. 29.5
"The tryLock function works like lock, but, instead of blocking the caller, it returns false if the mutex is locked by another thread. Otherwise, the return value is true."
RecMutex.h
"Returns true if the lock was acquired, and false otherwise."
Manual sec. 29.5
"The tryLock function works like lock, but, instead of blocking the caller, it returns false if the mutex is locked by another thread. Otherwise, the return value is true."
RecMutex.h
"Returns true if the lock was acquired, and false otherwise."
0
