AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Impl::MPSCQueueNonIntrusive< T >::Node Struct Reference

Public Member Functions

 Node ()=default
 
 Node (T *data)
 

Public Attributes

T * Data
 
std::atomic< Node * > Next
 

Detailed Description

template<typename T>
struct Acore::Impl::MPSCQueueNonIntrusive< T >::Node

Constructor & Destructor Documentation

◆ Node() [1/2]

template<typename T >
Acore::Impl::MPSCQueueNonIntrusive< T >::Node::Node ( )
default

◆ Node() [2/2]

template<typename T >
Acore::Impl::MPSCQueueNonIntrusive< T >::Node::Node ( T *  data)
inlineexplicit
72 : Data(data)
73 {
74 Next.store(nullptr, std::memory_order_relaxed);
75 }
std::atomic< Node * > Next
Definition: MPSCQueue.h:78
T * Data
Definition: MPSCQueue.h:77

References Acore::Impl::MPSCQueueNonIntrusive< T >::Node::Next.

Member Data Documentation

◆ Data

template<typename T >
T* Acore::Impl::MPSCQueueNonIntrusive< T >::Node::Data

◆ Next