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
,AutoCloseable
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 void
close()
Deprecated.This method is not intended to be called from client code.static CLUserEvent
create(CLContext context)
Creates a new user event.CLEvent.CommandType
getType()
ReturnsCLEvent.CommandType.USER
.boolean
isReleased()
Returns true ifCLResource.release()
has been called.CLUserEvent
setComplete()
Sets this event's status toCLEvent.ExecutionStatus.COMPLETE
.CLUserEvent
setStatus(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoCloseable
- See Also:
AutoCloseable
-
isReleased
public boolean isReleased()
Description copied from interface:CLResource
Returns true ifCLResource.release()
has been called.- Specified by:
isReleased
in interfaceCLResource
-
-