TListThreadSafe

Thread-safe single-linked list (lock-free).

Choose your operating system:

Windows

macOS

Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/DebugDrawQueue.h

Include

#include "Chaos/DebugDrawQueue.h"

Syntax

template<typename ElementType>
class TListThreadSafe

Remarks

Thread-safe single-linked list (lock-free). (Taken from Light Mass, should probably just move into core)

Constructors

Name Description

Public function

TListThreadSafe()

Initialization constructor.

Functions

Name Description

Public function

void

 

AddElement

(
    TList< ElementType >* Element
)

Adds an element to the list.

Public function

void

 

Clear()

Clears the list.

Public function

TList< Eleme...

 

ExtractAll()

Clears the list and returns the elements.