Table of Contents

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

OpenCLCommandQueue

Methods

DisposeAsync()

Asynchronously releases the queue back to the manager's pool.

public ValueTask DisposeAsync()

Returns

ValueTask

Equals(QueueHandle)

Determines whether the specified handle is equal to the current handle.

public bool Equals(QueueHandle other)

Parameters

other QueueHandle

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current handle.

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns the hash code for this handle.

public override int GetHashCode()

Returns

int

Operators

operator ==(QueueHandle, QueueHandle)

Determines whether two handles are equal.

public static bool operator ==(QueueHandle left, QueueHandle right)

Parameters

left QueueHandle
right QueueHandle

Returns

bool

operator !=(QueueHandle, QueueHandle)

Determines whether two handles are not equal.

public static bool operator !=(QueueHandle left, QueueHandle right)

Parameters

left QueueHandle
right QueueHandle

Returns

bool