AnnotatedMixin::try_lock

Try to lock the underlying mutex without blocking.

Synopsis

Declared in <sync.h>

[[try_acquire_capability(true)]]
bool
try_lock();

Return Value

true if the lock was acquired.