Struct opencl3::event::Event [−][src]
pub struct Event { /* fields omitted */ }
Expand description
An OpenCL event object.
Has methods to return information from calls to clGetEventInfo and
clGetEventProfilingInfo with the appropriate parameters.
Implements the Drop trait to call release_event when the object is dropped.
Implementations
Create an Event from an OpenCL cl_event.
event
- a valid OpenCL cl_event.
returns the new Event
Get data about an OpenCL event. Calls clGetEventInfo to get the desired data about the event.
pub fn set_callback(
&self,
command_exec_callback_type: cl_int,
pfn_notify: extern "C" fn(_: cl_event, _: cl_int, _: *mut c_void),
user_data: *mut c_void
) -> Result<()>
CL_VERSION_2_0
Get profiling data about an OpenCL event. Calls clGetEventProfilingInfo to get the desired profiling data about the event.