[ Version ( deprecated_since = "2.30" , replacement = "add" ) ]
[ CCode ( cname = "g_atomic_int_exchange_and_add" ) ]
public uint exchange_and_add (ref uint atomic, uint val)
Warning: exchange_and_add is deprecated since 2.30. Use add.
This function existed before add returned the prior value of the integer (which it now does).
Use add instead.
It is retained only for compatibility reasons. Don't use this function in new code.
atomic |
a pointer to a int |
val |
the value to add |
the value of |