pub struct Queue(/* private fields */);Expand description
The Queue connects a host program to a single device. Programs submit tasks to a device via the
Queue and may monitor the Queue for completion. A program initiates the task by submitting
a kernel.
Implementations§
Source§impl Queue
impl Queue
Sourcepub unsafe fn alloc_uninit_host<T>(
&self,
len: usize,
) -> Buffer<T, UsmAllocator<'_, HostAllocator>>
pub unsafe fn alloc_uninit_host<T>( &self, len: usize, ) -> Buffer<T, UsmAllocator<'_, HostAllocator>>
Allocates memory and creates a host-side Buffer that can store an array of T.
Safety: the buffer contents are uninitialized.
Allocates memory and creates a shared Buffer that can store an array of T.
Safety: the buffer contents are uninitialized.
Trait Implementations§
Source§impl<'a, T: UsmAllocatorKind> From<&'a Queue> for UsmAllocator<'a, T>
impl<'a, T: UsmAllocatorKind> From<&'a Queue> for UsmAllocator<'a, T>
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl !Send for Queue
impl !Sync for Queue
impl Unpin for Queue
impl UnsafeUnpin for Queue
impl UnwindSafe for Queue
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