Table of Contents

Class MetalEvent

Namespace
DotCompute.Backends.Metal.Execution
Assembly
DotCompute.Backends.Metal.dll

High-level Metal event abstraction for cross-stream synchronization

public sealed class MetalEvent : IDisposable
Inheritance
MetalEvent
Implements
Inherited Members
Extension Methods

Properties

EventId

public EventId EventId { get; }

Property Value

EventId

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

IsComplete()

Checks if this event has completed

public bool IsComplete()

Returns

bool

RecordAsync(nint, CancellationToken)

Records this event on the specified command queue

public Task RecordAsync(nint commandQueue, CancellationToken cancellationToken = default)

Parameters

commandQueue nint
cancellationToken CancellationToken

Returns

Task

WaitAsync(nint, CancellationToken)

Waits for this event to complete

public Task WaitAsync(nint commandQueue, CancellationToken cancellationToken = default)

Parameters

commandQueue nint
cancellationToken CancellationToken

Returns

Task