critical_section::try_lock Method
Tries to acquire the lock without blocking.
_CRTIMP bool try_lock();
Return Value
If the lock was acquired, the value true; otherwise, the value false.
Requirements
Header: concrt.h
Namespace: Concurrency
Этот браузер больше не поддерживается.
Выполните обновление до Microsoft Edge, чтобы воспользоваться новейшими функциями, обновлениями для системы безопасности и технической поддержкой.
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