critical_section::try_lock Method
Tries to acquire the lock without blocking.
bool try_lock();
Return Value
If the lock was acquired, the value true; otherwise, the value false.
Requirements
Header: concrt.h
Namespace: concurrency
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Tries to acquire the lock without blocking.
bool try_lock();
If the lock was acquired, the value true; otherwise, the value false.
Header: concrt.h
Namespace: concurrency