atomicRefCountDec

fnbool atomicRefCountDec(ref int arc)

Atomically decreases the reference count.

If true is returned, the reference count reached 0. After this point, arc is an undefined state and must be reinitialized with [glib.global.atomicRefCountInit] to be used again.

Parameters

arcthe address of an atomic reference count variable

Returns

true if the reference count reached 0, and false otherwise