atomic_int64_add
Description:
[ CCode ( cname = "gpseq_atomic_int64_add" ) ]
public int64 atomic_int64_add (ref int64 atomic, int64 val)
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.
Parameters:
atomic | |
val |
the value to add |
Returns:
the value of atomic before the add, signed |
Namespace: Gpseq
Package: gpseq-1.0