public class CLEvent extends CLObject
CLCommandQueue created with
CLCommandQueue.Mode.PROFILING_MODE.| Modifier and Type | Class and Description |
|---|---|
static class |
CLEvent.CommandType |
static class |
CLEvent.ExecutionStatus |
static class |
CLEvent.ProfilingCommand |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
This method is not intended to be called from client code.
|
boolean |
equals(Object obj) |
long |
getProfilingInfo(CLEvent.ProfilingCommand command) |
CLEvent.ExecutionStatus |
getStatus()
Returns the execution status of the command which triggers this event.
|
int |
getStatusCode() |
CLEvent.CommandType |
getType() |
int |
hashCode() |
boolean |
isComplete()
Returns true only if
getStatus() returns CLEvent.ExecutionStatus.COMPLETE. |
boolean |
isReleased()
Returns true if
CLResource.release() has been called. |
void |
registerCallback(CLEventListener callback)
Registers a callback which will be called when the event terminates (COMPLETE or ERROR).
|
void |
release()
Releases the OpenCL resource.
|
String |
toString() |
getContext, getID, getPlatformpublic void registerCallback(CLEventListener callback)
public void release()
CLResourcerelease in interface CLResourcepublic CLEvent.ExecutionStatus getStatus()
public boolean isComplete()
getStatus() returns CLEvent.ExecutionStatus.COMPLETE.public int getStatusCode()
public CLEvent.CommandType getType()
public long getProfilingInfo(CLEvent.ProfilingCommand command)
@Deprecated public final void close()
AutoCloseable.
Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.close in interface AutoCloseableAutoCloseablepublic boolean isReleased()
CLResourceCLResource.release() has been called.isReleased in interface CLResource