|
JOCL v2.6.0-rc-20250722
JOCL, OpenCL® API Binding for Java (public API).
|
Event objects can be used for synchronizing command queues, e.g you can wait until a event occurs or they can also be used to capture profiling information that measure execution time of a command. More...
Classes | |
| enum | CommandType |
| enum | ExecutionStatus |
| enum | ProfilingCommand |
Public Member Functions | |
| void | registerCallback (final CLEventListener callback) |
| Registers a callback which will be called when the event terminates (COMPLETE or ERROR). More... | |
| void | release () |
| Releases the OpenCL resource. More... | |
| ExecutionStatus | getStatus () |
| Returns the execution status of the command which triggers this event. More... | |
| boolean | isComplete () |
Returns true only if getStatus returns ExecutionStatus#COMPLETE. More... | |
| int | getStatusCode () |
| CommandType | getType () |
| long | getProfilingInfo (final ProfilingCommand command) |
| String | toString () |
| boolean | equals (final Object obj) |
| int | hashCode () |
Event objects can be used for synchronizing command queues, e.g you can wait until a event occurs or they can also be used to capture profiling information that measure execution time of a command.
Profiling of OpenCL commands can be enabled by using a com.jogamp.opencl.CLCommandQueue created with com.jogamp.opencl.CLCommandQueue.Mode#PROFILING_MODE.
Definition at line 48 of file CLEvent.java.
| boolean com.jogamp.opencl.CLEvent.equals | ( | final Object | obj | ) |
Definition at line 120 of file CLEvent.java.
| long com.jogamp.opencl.CLEvent.getProfilingInfo | ( | final ProfilingCommand | command | ) |
| ExecutionStatus com.jogamp.opencl.CLEvent.getStatus | ( | ) |
Returns the execution status of the command which triggers this event.
Definition at line 87 of file CLEvent.java.
| int com.jogamp.opencl.CLEvent.getStatusCode | ( | ) |
| CommandType com.jogamp.opencl.CLEvent.getType | ( | ) |
Reimplemented in com.jogamp.opencl.CLUserEvent.
Definition at line 102 of file CLEvent.java.
| int com.jogamp.opencl.CLEvent.hashCode | ( | ) |
| boolean com.jogamp.opencl.CLEvent.isComplete | ( | ) |
Returns true only if getStatus returns ExecutionStatus#COMPLETE.
Definition at line 94 of file CLEvent.java.
| void com.jogamp.opencl.CLEvent.registerCallback | ( | final CLEventListener | callback | ) |
Registers a callback which will be called when the event terminates (COMPLETE or ERROR).
Definition at line 64 of file CLEvent.java.
| void com.jogamp.opencl.CLEvent.release | ( | ) |
Releases the OpenCL resource.
Implements com.jogamp.opencl.CLResource.
Definition at line 78 of file CLEvent.java.
| String com.jogamp.opencl.CLEvent.toString | ( | ) |
Reimplemented from com.jogamp.opencl.CLObject.
Definition at line 113 of file CLEvent.java.