Struct EventId
- Namespace
- DotCompute.Abstractions.Types
- Assembly
- DotCompute.Abstractions.dll
Unique identifier for CUDA events.
public readonly struct EventId : IEquatable<EventId>
- Implements
- Inherited Members
Methods
Equals(EventId)
Determines whether this EventId equals another EventId.
public bool Equals(EventId other)
Parameters
otherEventIdThe other EventId to compare.
Returns
- bool
True if the EventIds are equal; otherwise, false.
Equals(object?)
Determines whether this EventId equals another object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare.
Returns
- bool
True if the object is an EventId and equals this instance; otherwise, false.
GetHashCode()
Gets the hash code for this EventId.
public override int GetHashCode()
Returns
- int
The hash code.
New()
Creates a new unique event identifier.
public static EventId New()
Returns
- EventId
A new EventId instance.
ToString()
Returns a string representation of this EventId.
public override string ToString()
Returns
- string
A shortened string representation of the underlying GUID.
Operators
operator ==(EventId, EventId)
Determines whether two EventId instances are equal.
public static bool operator ==(EventId left, EventId right)
Parameters
Returns
operator !=(EventId, EventId)
Determines whether two EventId instances are not equal.
public static bool operator !=(EventId left, EventId right)