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
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
RecordAsync(nint, CancellationToken)
Records this event on the specified command queue
public Task RecordAsync(nint commandQueue, CancellationToken cancellationToken = default)
Parameters
commandQueuenintcancellationTokenCancellationToken
Returns
WaitAsync(nint, CancellationToken)
Waits for this event to complete
public Task WaitAsync(nint commandQueue, CancellationToken cancellationToken = default)
Parameters
commandQueuenintcancellationTokenCancellationToken