[][src]Struct arrayfire::Event

pub struct Event { /* fields omitted */ }

RAII construct to manage ArrayFire events

Sharing Across Threads

While sharing an Event with other threads, just move it across threads.


impl Event[src]

pub fn mark(&self)[src]

Marks the event on the active computation queue.

If the event is enqueued/waited on later, any operations that are currently enqueued on the event queue will be completed before any events that are enqueued after the call to enqueue

pub fn enqueue_wait(&self)[src]

Enqueues the event and all enqueued events on the active queue

All operations enqueued after a call to enqueue will not be executed until operations on the queue when mark was called are complete

pub fn block(&self)[src]

Blocks the calling thread on events until all events on the computation stream before mark was called are complete

Trait Implementations

impl Default for Event[src]

impl Drop for Event[src]

impl Send for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl !Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.