Struct PayloadLockContext
Holds a value to identify a specific "context" for a Payload buffer lock.
Implements
Inherited Members
Namespace: Unity.Logging
Assembly: Unity.Logging.dll
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 bool IsValid { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
An invalid context means call to LockPayloadBuffer(PayloadHandle) failed.
Methods
Equals(PayloadLockContext)
Compares PayloadLockContext with another one
Declaration
public bool Equals(PayloadLockContext other)
Parameters
Type | Name | Description |
---|---|---|
PayloadLockContext | other | Another PayloadLockContext to compare with |
Returns
Type | Description |
---|---|
bool | True if they are equal |