Expand description
Events
Blaze events are considered a mixture of a Rust Future
and JoinHandle
. Their signature is the following:
ⓘ
use std::sync::mpsc::Sender;
pub struct Event<C> {
inner: RawEvent,
consumer: C,
#[cfg(not(feature = "cl1_1"))]
send: Sender<EventCallback>,
#[cfg(feature = "cl1_1")]
send: PhantomData<Sender<()>>,
}
Blaze events contain their underlying RawEvent
alongside a Consumer
.
Re-exports
pub use consumer::Consumer;
Modules
Structs
- AbortHandle
cl1_1
Handle to abort anAbortableEvent
. - An event with a consumer that will be executed on the completion of the former.
- EventWait
futures
Future forjoin_async
. - User event that’s completed manually.
- Struct containing the various profiling information of an event.
- Raw OpenCL event
Enums
- An event’s status
Type Definitions
- A dynamic event that can be shared between threads.
- A dynamic event that cannot be shared between threads.