Package com.jogamp.opencl
Class CLUserEvent
- java.lang.Object
-
- com.jogamp.opencl.CLObject
-
- com.jogamp.opencl.CLEvent
-
- com.jogamp.opencl.CLUserEvent
-
- All Implemented Interfaces:
AutoCloseable,CLResource
public class CLUserEvent extends CLEvent
Custom, user controlled event.- Author:
- Michael Bien
- See Also:
CLEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jogamp.opencl.CLEvent
CLEvent.CommandType, CLEvent.ExecutionStatus, CLEvent.ProfilingCommand
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.This method is not intended to be called from client code.static CLUserEventcreate(CLContext context)Creates a new user event.CLEvent.CommandTypegetType()ReturnsCLEvent.CommandType.USER.booleanisReleased()Returns true ifCLResource.release()has been called.CLUserEventsetComplete()Sets this event's status toCLEvent.ExecutionStatus.COMPLETE.CLUserEventsetStatus(CLEvent.ExecutionStatus status)Sets the event execution status.-
Methods inherited from class com.jogamp.opencl.CLEvent
equals, getProfilingInfo, getStatus, getStatusCode, hashCode, isComplete, registerCallback, release, toString
-
Methods inherited from class com.jogamp.opencl.CLObject
getContext, getID, getPlatform
-
-
-
-
Method Detail
-
create
public static CLUserEvent create(CLContext context)
Creates a new user event.
-
setStatus
public CLUserEvent setStatus(CLEvent.ExecutionStatus status)
Sets the event execution status. Calls .
-
setComplete
public CLUserEvent setComplete()
Sets this event's status toCLEvent.ExecutionStatus.COMPLETE.
-
getType
public CLEvent.CommandType getType()
ReturnsCLEvent.CommandType.USER.
-
close
@Deprecated public final void close()
Deprecated.This method is not intended to be called from client code.Implementation detail, satisfyingAutoCloseable. Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.- Specified by:
closein interfaceAutoCloseable- See Also:
AutoCloseable
-
isReleased
public boolean isReleased()
Description copied from interface:CLResourceReturns true ifCLResource.release()has been called.- Specified by:
isReleasedin interfaceCLResource
-
-