|
|
|
|||||
|
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."
__________________
Alex Makarenko Australian Centre for Field Robotics The University of Sydney www.cas.edu.au project: orca-robotics.sf.net |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| About return struct | billwillman | Help Center | 7 | 10-16-2006 03:39 AM |
| why return false ? | OrNot | Help Center | 2 | 01-04-2006 02:50 AM |
| return value of getPropertyAsInt | n2503v | Help Center | 3 | 10-19-2005 05:58 PM |
| can stringToProxy return nil pointer? | andhow | Help Center | 1 | 02-03-2005 08:43 AM |
| portability problems with RecMutex ctor | marlowa | Patches | 6 | 02-23-2003 04:45 PM |