8.2.30. _gfortran_caf_atomic_cas

8.2.30 _gfortran_caf_atomic_cas — Atomic compare and swap

Description:

Atomic compare and swap of a kind-4 integer or logical variable. Assigns atomically the specified value to the atomic variable, if the latter has the value specified by the passed condition value.

Syntax:

void _gfortran_caf_atomic_cas (caf_token_t token, size_t offset, int image_index, void *old, void *compare, void *new_val, int *stat, int type, int kind)

Arguments:
token intent(in) An opaque pointer identifying the coarray.
offset intent(in) By which amount of bytes the actual data is shifted compared to the base addr