Multithreading - Poco
Multithreading - Poco
Multithreading - Poco
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Mutex and FastMutex Operations (cont.)> bool tryLock()tries to acquire the mutex. Returns false immediately if the mutexis held by another thread, or true if the mutex has been acquired.> bool tryLock(long millisecs)tries to acquire the mutex within the given time period. Returnsfalse if it fails to acquire the lock, or true if the mutex has beenacquired.