TMpscQueue

Fast multi-producer/single-consumer unbounded concurrent queue.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/MpscQueue.h

Include

#include "Containers/MpscQueue.h"

Syntax

template<typename T>
class TMpscQueue

Remarks

Fast multi-producer/single-consumer unbounded concurrent queue. Based on http://www.1024cores.net/home/lock-free-algorithms/queues/non-intrusive-mpsc-node-based-queue

Constructors

Name Description

Public function

TMpscQueue()

Public function

TMpscQueue

(
    TMpscQueue&&
)

Public function

TMpscQueue

(
    const TMpscQueue&
)

Destructors

Name Description

Public function

~TMpscQueue()

Functions

Name Description

Public function

TOptional< E...

 

Dequeue()

Public function

void

 

Enqueue

(
    ArgTypes&&... Args
)

Operators

Name Description

Public function

TMpscQueue &

 

operator=

(
    const TMpscQueue&
)

Public function

TMpscQueue &

 

operator=

(
    TMpscQueue&&
)

Typedefs

Name

Description

ElementType