pub struct Queue { /* private fields */ }
Expand description
A command queue which manages all actions taken on kernels, buffers, and images.
Implementations§
source§impl Queue
impl Queue
sourcepub fn new(
context: &Context,
device: Device,
properties: Option<CommandQueueProperties>
) -> OclResult<Queue>
pub fn new( context: &Context, device: Device, properties: Option<CommandQueueProperties> ) -> OclResult<Queue>
Returns a new Queue on the device specified by device
.
sourcepub fn flush(&self) -> OclResult<()>
pub fn flush(&self) -> OclResult<()>
Issues all previously queued OpenCL commands to the device.
sourcepub fn finish(&self) -> OclResult<()>
pub fn finish(&self) -> OclResult<()>
Blocks until all commands in this queue have completed before returning.
sourcepub fn enqueue_marker<Ewl>(&self, ewait: Option<Ewl>) -> OclResult<Event>where
Ewl: ClWaitListPtr,
pub fn enqueue_marker<Ewl>(&self, ewait: Option<Ewl>) -> OclResult<Event>where
Ewl: ClWaitListPtr,
Enqueues a marker command which waits for either a list of events to complete, or all previously enqueued commands to complete.
sourcepub fn as_core(&self) -> &CommandQueueCore
pub fn as_core(&self) -> &CommandQueueCore
Returns a reference to the core pointer wrapper, usable by functions in
the core
module.
sourcepub fn device_version(&self) -> OpenclVersion
pub fn device_version(&self) -> OpenclVersion
Returns the cached device version.
sourcepub fn info(
&self,
info_kind: CommandQueueInfo
) -> OclCoreResult<CommandQueueInfoResult>
pub fn info( &self, info_kind: CommandQueueInfo ) -> OclCoreResult<CommandQueueInfoResult>
Returns info about this queue.
Methods from Deref<Target = CommandQueueCore>§
sourcepub fn device(&self) -> Result<DeviceId, Error>
pub fn device(&self) -> Result<DeviceId, Error>
Returns the DeviceId
associated with this command queue.
Trait Implementations§
source§impl AsRef<CommandQueue> for Queue
impl AsRef<CommandQueue> for Queue
source§fn as_ref(&self) -> &CommandQueueCore
fn as_ref(&self) -> &CommandQueueCore
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'a> ClContextPtr for &'a Queue
impl<'a> ClContextPtr for &'a Queue
fn as_ptr(&self) -> cl_context
source§impl Deref for Queue
impl Deref for Queue
§type Target = CommandQueue
type Target = CommandQueue
The resulting type after dereferencing.
source§fn deref(&self) -> &CommandQueueCore
fn deref(&self) -> &CommandQueueCore
Dereferences the value.
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin 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