pub unsafe extern "C" fn hipStreamAddCallback(
stream: hipStream_t,
callback: hipStreamCallback_t,
userData: *mut c_void,
flags: c_uint,
) -> hipError_t
Expand description
@brief Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished. @param[in] stream - Stream to add callback to @param[in] callback - The function to call once preceding stream operations are complete @param[in] userData - User specified data to be passed to the callback function @param[in] flags - Reserved for future use, must be 0 @return #hipSuccess, #hipErrorInvalidHandle, #hipErrorNotSupported
@see hipStreamCreate, hipStreamCreateWithFlags, hipStreamQuery, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy, hipStreamCreateWithPriority