gboolean g_bit_trylock ( volatile gint* address, gint lock_bit )
Sets the indicated
successful. If the bit is already set, returns
Attempting to lock on two different bits within the same integer is not supported.
The value of the bit that is set is (1u <<
bit is not
between 0 and 31 then the result is undefined.
This function accesses
address atomically. All other accesses to
address must be atomic in order for this function to work
address has a
volatile qualifier, this is a historical
artifact and the argument passed to it should not be
A pointer to an integer.
|The data is owned by the caller of the function.|
A bit value between 0 and 31