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
Este explorador ya no se admite.
Actualice a Microsoft Edge para aprovechar las características y actualizaciones de seguridad más recientes, y disponer de soporte técnico.
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