Table of Contents

Class MetalCommandQueuePool.QueueEntry

Namespace
DotCompute.Backends.Metal.Utilities
Assembly
DotCompute.Backends.Metal.dll

Entry representing a command queue in the pool with metadata. Nested type is intentional for tight coupling with pool lifecycle.

public sealed class MetalCommandQueuePool.QueueEntry
Inheritance
MetalCommandQueuePool.QueueEntry
Inherited Members

Properties

CreatedTime

Gets the time this queue was created.

public required DateTime CreatedTime { get; init; }

Property Value

DateTime

IsInUse

Gets or sets whether this queue is currently in use.

public bool IsInUse { get; set; }

Property Value

bool

LastAcquiredTime

Gets or sets the last time this queue was acquired.

public DateTime LastAcquiredTime { get; set; }

Property Value

DateTime

LastReleasedTime

Gets or sets the last time this queue was released.

public DateTime LastReleasedTime { get; set; }

Property Value

DateTime

Queue

Gets the Metal command queue handle.

public required nint Queue { get; init; }

Property Value

nint

QueueId

Gets the unique queue ID for tracking.

public required int QueueId { get; init; }

Property Value

int

UsageCount

Gets the total number of times this queue has been used. Thread-safe via Interlocked operations.

public int UsageCount { get; }

Property Value

int