![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SpscQueue.h>
Classes | |
| struct | FIterator |
Public Types | |
| using | ElementType = T |
Public Member Functions | |
| UE_NONCOPYABLE (TSpscQueue) | |
| TSpscQueue () | |
| ~TSpscQueue () | |
| template<typename... ArgTypes> | |
| void | Enqueue (ArgTypes &&... Args) |
| TOptional< ElementType > | Dequeue () |
| bool | Dequeue (ElementType &OutElem) |
| bool | IsEmpty () const |
| int32 | Num () const |
| ElementType * | Peek () const |
| FIterator | begin () const |
| std::nullptr_t | end () const |
Fast single-producer/single-consumer unbounded concurrent queue. Doesn't free memory until destruction but recycles consumed items. Based on http://www.1024cores.net/home/lock-free-algorithms/queues/unbounded-spsc-queue
| using TSpscQueue< T, AllocatorType >::ElementType = T |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| TSpscQueue< T, AllocatorType >::UE_NONCOPYABLE | ( | TSpscQueue< T, AllocatorType > | ) |