Navigation
API > API/Runtime > API/Runtime/Chaos
Thread-safe single-linked list (lock-free). (Taken from Light Mass, should probably just move into core)
| Name | TListThreadSafe |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/DebugDrawQueue.h |
| Include Path | #include "Chaos/DebugDrawQueue.h" |
Syntax
template<typename ElementType>
class TListThreadSafe
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TListThreadSafe() |
Initialization constructor. | Chaos/DebugDrawQueue.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FirstElement | TList< ElementType > * | Chaos/DebugDrawQueue.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddElement
(
TList< ElementType >* Element |
Adds an element to the list. | Chaos/DebugDrawQueue.h | |
void Clear() |
Clears the list. | Chaos/DebugDrawQueue.h | |
TList< ElementType > * ExtractAll() |
Clears the list and returns the elements. | Chaos/DebugDrawQueue.h |