_gfortran_caf_atomic_define (The GNU Fortran Compiler)

#### 7.2.29 `_gfortran_caf_atomic_define` — Atomic variable assignment ¶

Synopsis:

  `void _gfortran_caf_atomic_define (caf_token_t token, size_t offset, int image_index, void *value, int *stat, int type, int kind)`

Description:

  Assign atomically a value to an integer or logical variable.

Arguments:

  token | intent(in) An opaque pointer identifying the coarray.
  offset | intent(in) The number of bytes the actual data is shifted compared to the base address of the coarray.
  image_index | intent(in) The ID of the remote image; must be a positive number; zero indicates the current image when used noncoindexed.
  value | intent(in) the value to be assigned, passed by reference
  stat | intent(out) Stores the status STAT= and may be NULL.
  type | intent(in) The data type, i.e. `BT_INTEGER` (1) or `BT_LOGICAL` (2).
  kind | intent(in) The kind value (only 4; always `int`)