Package foundry.veil.api.opencl.event
Interface CLEventDispatcher
- All Known Implementing Classes:
CLLegacyEventDispatcher,CLNativeEventDispatcher
public interface CLEventDispatcher
Provides low-level access to event subscriptions. This allows a callback to be fired when OpenCL fires an event.
-
Method Summary
-
Method Details
-
listen
Listens to the specific event and event status.- Parameters:
event- The event to listen to. This is a pointer to an event provided by an OpenCL function.callback- The callback to fire when the event fires- Throws:
CLException- If the event is invalid
-
listen
Listens to the specific event and event status. Uselisten(long, Runnable)if unsure what status to listen for.- 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_QUEUEDcallback- The callback to fire when the event fires- Throws:
CLException- If the event is invalid
-