Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
critical_section::try_lock Method

critical_section::try_lock Method

Tries to acquire the lock without blocking.

_CRTIMP bool try_lock();

If the lock was acquired, the value true; otherwise, the value false.

Header: concrt.h

Namespace: Concurrency

Community Additions

© 2015 Microsoft