pub struct Event { /* private fields */ }Expand description
RAII construct to manage ArrayFire events
§Sharing Across Threads
While sharing an Event with other threads, just move it across threads.
Implementations§
Source§impl Event
impl Event
Sourcepub fn mark(&self)
pub fn mark(&self)
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
Sourcepub fn enqueue_wait(&self)
pub fn enqueue_wait(&self)
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more