13.07.2015 Views

Multithreading - Poco

Multithreading - Poco

Multithreading - Poco

SHOW MORE
SHOW LESS

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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!