Package foundry.veil.api.opencl.event
Class CLLegacyEventDispatcher
java.lang.Object
foundry.veil.api.opencl.event.CLLegacyEventDispatcher
- All Implemented Interfaces:
CLEventDispatcher
Uses a custom thread to request event status for all events.
-
Constructor Details
-
CLLegacyEventDispatcher
public CLLegacyEventDispatcher()
-
-
Method Details
-
listen
public void listen(long event, long eventStatus, @NotNull @NotNull Runnable callback) throws CLException Description copied from interface:CLEventDispatcher
Listens to the specific event and event status. UseCLEventDispatcher.listen(long, Runnable)
if unsure what status to listen for.- Specified by:
listen
in interfaceCLEventDispatcher
- Parameters:
event
- The event to listen to. This is a pointer to an event provided by an OpenCL function.eventStatus
- The event status to listen for. One ofCL10.CL_COMPLETE
,CL10.CL_RUNNING
,CL10.CL_SUBMITTED
, orCL10.CL_QUEUED
callback
- The callback to fire when the event fires- Throws:
CLException
- If the event is invalid
-
close
- Throws:
InterruptedException
-