atomic_int64_or


Description:

[ CCode ( cname = "gpseq_atomic_int64_or" ) ]
public uint64 atomic_int64_or (ref uint64 atomic, uint64 val)

Performs an atomic bitwise 'or' of the value of atomic and val, storing the result back in 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

a pointer to a int64 or uint64

val

the value to 'or'

Returns:

the value of atomic before the operation, unsigned


Namespace: Gpseq
Package: gpseq-1.0