Compartir a través de


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

See Also

Reference

critical_section Class

critical_section::unlock Method