pointerBitTrylock

This is equivalent to glib.global.bitTrylock, but working on pointers (or other pointer-sized values).

For portability reasons, you may only lock on the bottom 32 bits of the pointer.

While address has a volatile qualifier, this is a historical artifact and the argument passed to it should not be volatile.

bool
pointerBitTrylock
(
void* address
,)

Parameters

address void*

a pointer to a #gpointer-sized value

lockBit int

a bit value between 0 and 31

Return Value

Type: bool

true if the lock was acquired