Struct PayloadLockContext
Holds a value to identify a specific "context" for a Payload buffer lock.
Inherited Members
Namespace: Unity.Logging
Syntax
[BurstCompile]
public readonly struct PayloadLockContext : IEquatable<PayloadLockContext>
Remarks
This value is returned by LockPayloadBuffer(PayloadHandle) and later passed into UnlockPayloadBuffer(PayloadHandle, PayloadLockContext) to release the lock.
Properties
IsValid
Returns if context value is valid or not.
Declaration
public readonly bool IsValid { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
An invalid context means call to LockPayloadBuffer(PayloadHandle) failed.
Methods
Equals(PayloadLockContext)
Compares PayloadLockContext with another one
Declaration
public readonly bool Equals(PayloadLockContext other)
Parameters
Type | Name | Description |
---|---|---|
PayloadLockContext | other | Another PayloadLockContext to compare with |
Returns
Type | Description |
---|---|
Boolean | True if they are equal |