SYNOPSIS top
Signifies to enable the
#define OMNI_32BIT_MUTEXSignifies to enable the
OMNI_32BIT_MUTEX flag and utilize 32-bit types.
DESCRIPTION top
If defined, the
If defined, the
omni::sync::mutex class will utilize a 32-bit intergral type for its lock counter, versus a 64-bit type.
CONSIDERATIONS top
A lock counter is kept due to the recurisve nature of locks in the library, due to this, if a lock operation is preformed more than the maximum value for the underlying lock counter type, an overflow can occur and put the lock into an undefined state. For example, if this flag is defined then the lock's counter type will be 32-bit, thus the maximum number of lock operations that can be preforemd without an unlock operation is
A lock counter is kept due to the recurisve nature of locks in the library, due to this, if a lock operation is preformed more than the maximum value for the underlying lock counter type, an overflow can occur and put the lock into an undefined state. For example, if this flag is defined then the lock's counter type will be 32-bit, thus the maximum number of lock operations that can be preforemd without an unlock operation is
std::numeric_limits<uint32_t>::max().