#[repr(C)]pub struct HurraySyncEventPayload {
pub sync_handle: *mut c_void,
pub sync_handle_device_tag: u8,
pub event_release_fn: HurrayEventReleaseFn,
pub event_release_context: *mut c_void,
}Expand description
Payload for the Event sync mode handoff.
The consumer supplies this struct when calling
hurray_buffer_handoff_event to provide the device event that the
producer recorded and on which the consumer will wait.
Fields§
§sync_handle: *mut c_voidNon-null device-event handle (e.g., cudaEvent_t).
sync_handle_device_tag: u8Wire byte of the device on which sync_handle was recorded.
event_release_fn: HurrayEventReleaseFnRelease callback for sync_handle; MUST be non-null.
event_release_context: *mut c_voidOpaque context forwarded to event_release_fn; MAY be null.
Trait Implementations§
impl Send for HurraySyncEventPayload
Auto Trait Implementations§
impl !Sync for HurraySyncEventPayload
impl Freeze for HurraySyncEventPayload
impl RefUnwindSafe for HurraySyncEventPayload
impl Unpin for HurraySyncEventPayload
impl UnsafeUnpin for HurraySyncEventPayload
impl UnwindSafe for HurraySyncEventPayload
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