cnx_adopt_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 given mutex has already been locked and thus the guard does not need to acquire the lock itself. This is in contrast to the default behavior, where a lock guard will acquire the lock upon its construction.