Thread.pointerBitTrylock

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

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

class Thread
static
bool
pointerBitTrylock
(
void* address
,)

Parameters

address void*

a pointer to a [gpointer-sized|gpointer-sized] value

lockBit int

a bit value between 0 and 31

Return Value

Type: bool

TRUE if the lock was acquired

Meta

Since

2.30