Function

GLib-2.0GLibbit_lock_and_getSince 2.86

  • Sets the indicated lock_bit in address and atomically returns the new value.

    This is like GLib.bit_lock, except it can atomically return the new value at address (right after obtaining the lock). Thus the value returned in out_val always has the lock_bit set.

    Parameters

    • address: any

      a pointer to an integer

    • lock_bit: number

      a bit value between 0 and 31

    Returns number

    2.86