Function

GLib-2.0GLibatomic_int_exchange_and_addDeprecated 2.30Since 2.4

  • This function existed before g_atomic_int_add() returned the prior value of the integer (which it now does). It is retained only for compatibility reasons. Don't use this function in new code.

    Parameters

    • Deprecatedatomic: any

      a pointer to a gint

    • Deprecatedval: number

      the value to add

    Returns number

    the value of atomic before the add, signed

    2.4

    since 2.30: Use g_atomic_int_add() instead.