Function hipIpcOpenEventHandle

Source
pub unsafe extern "C" fn hipIpcOpenEventHandle(
    event: *mut hipEvent_t,
    handle: hipIpcEventHandle_t,
) -> hipError_t
Expand description

@brief Opens an interprocess event handle.

Opens an interprocess event handle exported from another process with ::hipIpcGetEventHandle. The returned #hipEvent_t behaves like a locally created event with the #hipEventDisableTiming flag specified. This event needs be freed with ::hipEventDestroy. After the exported event has been freed with ::hipEventDestroy, operations on the imported event will result in undefined behavior. If the input handle is from the same process, it will return #hipErrorInvalidContext.

@param[out] event Pointer to hipEvent_t to return the imported event @param[in] handle The opaque interprocess handle to open

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidContext

@note This IPC event related feature API is currently applicable on Linux.