8.2.13. _gfortran_caf_event_wait

8.2.13 _gfortran_caf_event_wait — Wait that an event occurred

Description:
Wait until the event count has reached at least the specified until_count; if so, atomically decrement the event variable by this amount and return.
Syntax:
void _gfortran_caf_event_wait (caf_token_t token, size_t index, int until_count, int *stat, char *errmsg, int errmsg_len)
Arguments:
token intent(in) An opaque pointer identifying the coarray.
index Array index; first array index is 0. For scalars, it is always 0.
until_count The number of events which have to be available before the function returns.