Function opencl3::event::retain_event
source · pub unsafe fn retain_event(event: *mut c_void) -> Result<(), i32>
Expand description
Retain an OpenCL event.
Calls clRetainEvent to increment the event reference count.
event
- the OpenCL event.
returns an empty Result or the error code from the OpenCL C API function.
§Safety
This function is unsafe because it changes the OpenCL object reference count.