14#if AF_API_VERSION >= 37
37#if AF_COMPILER_CXX_RVALUE_REFERENCES
42 event& operator=(
event&& other);
64 event& operator=(
const event& other);
C++ RAII interface for manipulating events.
void block() const
block the calling thread until this event has occurred
void enqueue()
Block the ArrayFire queue until this even has occurred.
event(af_event e)
Create a new event using the C af_event handle.
void mark()
Adds the event on the default ArrayFire queue.
event()
Create a new event object.
af_event get() const
Return the underlying C af_event handle.
AFAPI af_err af_block_event(const af_event eventHandle)
blocks the calling thread on events until all events on the computation stream before mark was called...
AFAPI af_err af_delete_event(af_event eventHandle)
Release the af_event handle.
AFAPI af_err af_mark_event(const af_event eventHandle)
marks the af_event on the active computation stream.
AFAPI af_err af_enqueue_wait_event(const af_event eventHandle)
enqueues the af_event and all enqueued events on the active stream.
void * af_event
Handle to an event object.
AFAPI af_err af_create_event(af_event *eventHandle)
Create a new af_event handle.