pub unsafe extern "C" fn ucp_worker_flush(
worker: ucp_worker_h,
) -> ucs_status_tExpand description
@ingroup UCP_WORKER
@brief Flush outstanding AMO and RMA operations on the @ref ucp_worker_h “worker” @deprecated Replaced by @ref ucp_worker_flush_nb. The following example implements the same functionality using @ref ucp_worker_flush_nb : @code ucs_status_t worker_flush(ucp_worker_h worker) { void *request = ucp_worker_flush_nb(worker); if (request == NULL) { return UCS_OK; } else if (UCS_PTR_IS_ERR(request)) { return UCS_PTR_STATUS(request); } else { ucs_status_t status; do { ucp_worker_progress(worker); status = ucp_request_check_status(request); } while (status == UCS_INPROGRESS); ucp_request_release(request); return status; } } @endcode
This routine flushes all outstanding AMO and RMA communications on the @ref ucp_worker_h “worker”. All the AMO and RMA operations issued on the @a worker prior to this call are completed both at the origin and at the target when this call returns.
@note For description of the differences between @ref ucp_worker_flush “flush” and @ref ucp_worker_fence “fence” operations please see @ref ucp_worker_fence “ucp_worker_fence()”
@param [in] worker UCP worker.
@return Error code as defined by @ref ucs_status_t