Foundation
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Foundation::Atomics::MPMCQueue< T >::Reader Class Reference

#include <Queue.hpp>

Public Member Functions

 Reader (MPMCQueue *queue)
 
bool Pop (T &out)
 Try to pop data from the queue.
 

Private Attributes

MPMCQueue *const queue
 

Constructor & Destructor Documentation

◆ Reader()

template<typename T >
Foundation::Atomics::MPMCQueue< T >::Reader::Reader ( MPMCQueue queue)
inline

Member Function Documentation

◆ Pop()

template<typename T >
bool Foundation::Atomics::MPMCQueue< T >::Reader::Pop ( T out)
inline

Try to pop data from the queue.

Note
Multiple threads may call this concurrently.
Parameters
outReference to receive the popped data. This is only valid if the function returns true. The values are move-constructed from the queue.
Returns
True is successful, false if the queue is empty.

Member Data Documentation

◆ queue

template<typename T >
MPMCQueue* const Foundation::Atomics::MPMCQueue< T >::Reader::queue
private

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