_gfortran_caf_sync_images (The GNU Fortran Compiler)

#### 7.2.24 `_gfortran_caf_sync_images` — Barrier for selected images ¶

Synopsis:

  `void _gfortran_caf_sync_images (int count, int images[], int *stat, char *errmsg, size_t errmsg_len)`

Description:

  Synchronization between the specified images; the program only continues on a given image after this function has been called on all images specified for that image. Note that one image can wait for all other images in the current team (e.g. via `sync images(*)`) while those only wait for that specific image. Additionally, `sync images` ensures that all pending data transfers of previous segments have completed.

Arguments:

  count | intent(in) The number of images that are provided in the next argument. For a zero-sized array, the value is zero. For `sync images (*)`, the value is -1.
  images | intent(in) An array with the images provided by the user. If count is zero, a NULL pointer is passed.
  stat | intent(out) Stores the status STAT= and may be NULL.
  errmsg | intent(out) When an error occurs, this is set to an error message; may be NULL.
  errmsg_len | intent(in) the buffer size of errmsg