[ CCode ( cname = "gpseq_atomic_int64_and" ) ]
public uint64 atomic_int64_and (ref uint64 atomic, uint64 val)
Performs an atomic bitwise 'and' of the value of atomic and val, storing the result back in atomic.
This call acts as a full compiler and hardware memory barrier.
Think of this operation as an atomic version of:
{ tmp = *atomic; *atomic &= val; return tmp; }
atomic |
a pointer to a int64 or uint64 |
val |
the value to 'and' |
the value of atomic before the operation, unsigned |