Struct QueueHandle
- Namespace
- DotCompute.Backends.OpenCL.Execution
- Assembly
- DotCompute.Backends.OpenCL.dll
RAII handle for managed command queues with automatic cleanup. Ensures queues are properly returned to the pool when no longer needed.
public readonly struct QueueHandle : IAsyncDisposable, IEquatable<QueueHandle>
- Implements
- Inherited Members
Properties
Queue
Gets the underlying OpenCL command queue.
public OpenCLCommandQueue Queue { get; }
Property Value
Methods
DisposeAsync()
Asynchronously releases the queue back to the manager's pool.
public ValueTask DisposeAsync()
Returns
Equals(QueueHandle)
Determines whether the specified handle is equal to the current handle.
public bool Equals(QueueHandle other)
Parameters
otherQueueHandle
Returns
Equals(object?)
Determines whether the specified object is equal to the current handle.
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
Returns the hash code for this handle.
public override int GetHashCode()
Returns
Operators
operator ==(QueueHandle, QueueHandle)
Determines whether two handles are equal.
public static bool operator ==(QueueHandle left, QueueHandle right)
Parameters
leftQueueHandlerightQueueHandle
Returns
operator !=(QueueHandle, QueueHandle)
Determines whether two handles are not equal.
public static bool operator !=(QueueHandle left, QueueHandle right)
Parameters
leftQueueHandlerightQueueHandle