Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::concurrent::LinkedQueue< T > Class Template Reference

Non-blocking, thread-safe queue. More...

#include <LinkedQueue.h>

Classes

struct  Node
 Node. More...
 

Public Member Functions

 LinkedQueue ()
 
 ~LinkedQueue ()
 
void push (const T &value)
 
bool pop (T &value)
 
bool empty ()
 

Private Attributes

std::atomic< Node * > head {nullptr}
 
std::atomic< Node * > tail {nullptr}
 

Detailed Description

template<class T>
class sese::concurrent::LinkedQueue< T >

Non-blocking, thread-safe queue.

Template Parameters
TThe template type

Constructor & Destructor Documentation

◆ LinkedQueue()

◆ ~LinkedQueue()

Member Function Documentation

◆ empty()

◆ pop()

◆ push()

template<class T >
void sese::concurrent::LinkedQueue< T >::push ( const T & value)
inline

Member Data Documentation

◆ head

◆ tail


The documentation for this class was generated from the following file: