|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opencl.CLObject
com.jogamp.opencl.CLEvent
public class CLEvent
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 CLCommandQueue
created with
CLCommandQueue.Mode.PROFILING_MODE
.
Nested Class Summary | |
---|---|
static class |
CLEvent.CommandType
|
static class |
CLEvent.ExecutionStatus
|
static class |
CLEvent.ProfilingCommand
|
Field Summary |
---|
Fields inherited from class com.jogamp.opencl.CLObject |
---|
context, ID |
Method Summary | |
---|---|
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()
|
Methods inherited from class com.jogamp.opencl.CLObject |
---|
getContext, getID, getPlatform |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void registerCallback(CLEventListener callback)
public void release()
CLResource
release
in interface CLResource
public CLEvent.ExecutionStatus getStatus()
public boolean isComplete()
getStatus()
returns CLEvent.ExecutionStatus.COMPLETE
.
public int getStatusCode()
public CLEvent.CommandType getType()
public long getProfilingInfo(CLEvent.ProfilingCommand command)
public String toString()
toString
in class CLObject
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
@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 AutoCloseable
AutoCloseable
public boolean isReleased()
CLResource
CLResource.release()
has been called.
isReleased
in interface CLResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |