timed_mutex::try_lock Method

Attempts to obtain ownership of the mutex without blocking.

bool try_lock();

true if the method successfully obtains ownership of the mutex; otherwise, false.

If the calling thread already owns the mutex, the behavior is undefined.

Header: mutex

Namespace: std

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft