Struct AtomicNode
A node for use in an atomic collection
Namespace: Unity.Media.Utilities
Syntax
public struct AtomicNode
Remarks
This must be external to AtomicFreeList<T> because it must be unmanaged
Fields
Next
A pointer to the next node
Declaration
public long Next
Field Value
Type | Description |
---|---|
Int64 |
Payload
A pointer to the actual data managed by this node
Declaration
public long Payload
Field Value
Type | Description |
---|---|
Int64 |
Methods
Create(Int64, Int64, Allocator)
Allocate a new AtomicNode with the provided payload and next pointers
Declaration
public static AtomicNode*Create(long payload = null, long next = null, Allocator allocator = null)
Parameters
Type | Name | Description |
---|---|---|
Int64 | payload | The payload for the new node |
Int64 | next | The next pointer for the new node |
Allocator | allocator | The native allocator to use |
Returns
Type | Description |
---|---|
AtomicNode* |