A high-performance general-purpose compute library

C++ RAII interface for manipulating events. More...

#include <event.h>

Public Member Functions

 event (af_event e)
 Create a new event using the C af_event handle. More...
 
 event ()
 Create a new event object. More...
 
 ~event ()
 event Destructor More...
 
af_event get () const
 Return the underlying C af_event handle. More...
 
void mark ()
 Adds the event on the default ArrayFire queue. More...
 
void enqueue ()
 Block the ArrayFire queue until this even has occurred. More...
 
void block () const
 block the calling thread until this event has occurred More...
 

Detailed Description

C++ RAII interface for manipulating events.

Definition at line 31 of file event.h.

Constructor & Destructor Documentation

◆ event() [1/2]

event ( af_event  e)

Create a new event using the C af_event handle.

◆ event() [2/2]

event ( )

Create a new event object.

◆ ~event()

~event ( )

event Destructor

Member Function Documentation

◆ block()

void block ( ) const

block the calling thread until this event has occurred

◆ enqueue()

void enqueue ( )

Block the ArrayFire queue until this even has occurred.

◆ get()

af_event get ( ) const

Return the underlying C af_event handle.

◆ mark()

void mark ( )

Adds the event on the default ArrayFire queue.

Once this point on the program is executed, the event is considered complete.


The documentation for this class was generated from the following file: