cnx_try_lock_t struct
#include <include/Cnx/sync/Mutex.h>
cnx_
is a tag type intended for use with scoped lock guards such as CnxUniqueLock
and CnxSharedLock
, to communicate that the guard should only attempt to lock the given mutex (via try_lock
), and not block if lock acquisition was unsuccessful. This is in contrast to the default behavior, where a lock guard will unconditionally acquire the lock upon its construction.