[ CCode ( cname = "gpseq_atomic_int64_add" ) ]
public int64 atomic_int64_add (ref int64 atomic, int64 val)
Atomically adds val to the value of atomic.
Think of this operation as an atomic version of:
{ tmp = *atomic; *atomic += val; return tmp; }
This call acts as a full compiler and hardware memory barrier.
atomic |
a pointer to a int64 or uint64 |
val |
the value to add |
the value of atomic before the add, signed |