Navigation
API > API/Runtime > API/Runtime/Core
| Name | TWorkStealingQueueBase2 |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Fundamental/LocalQueue.h |
| Include Path | #include "Async/Fundamental/LocalQueue.h" |
Syntax
template<uint32 NumItems>
class TWorkStealingQueueBase2
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FAlignedElement |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Head | uint32 | Async/Fundamental/LocalQueue.h | ||
| ItemSlots | FAlignedElement | Async/Fundamental/LocalQueue.h | ||
| Tail | std::atomic_uint | Async/Fundamental/LocalQueue.h |
Functions
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Get
(
uintptr_t& Item |
Remove an item at the head position in FIFO order (this can only safe on a single thread, shared with Put) | Async/Fundamental/LocalQueue.h | |
bool Put
(
uintptr_t Item |
Insert an item at the head position (this can only safe on a single thread, shared with Get) | Async/Fundamental/LocalQueue.h | |
bool Steal
(
uintptr_t& Item |
Remove an item at the tail position in LIFO order (this can be done from any thread including the one that accesses the head) | Async/Fundamental/LocalQueue.h |