atomic_int64_and
Description:
[ CCode ( cname = "gpseq_atomic_int64_and" ) ]
public uint64 atomic_int64_and (ref uint64 atomic, uint64 val)
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; }
Parameters:
atomic | |
val |
the value to 'and' |
Returns:
the value of atomic before the operation, unsigned |
Namespace: Gpseq
Package: gpseq-1.0