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

#include <Queue.hpp>

Public Member Functions

 Writer (MPMCQueue *queue)
 
template<typename U >
bool Push (U &&data)
 Try to push data into the queue.
 

Private Attributes

MPMCQueue *const queue
 

Constructor & Destructor Documentation

◆ Writer()

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

Member Function Documentation

◆ Push()

template<typename T >
template<typename U >
bool Foundation::Atomics::MPMCQueue< T >::Writer::Push ( U &&  data)
inline

Try to push data into the queue.

Note
Multiple threads may call this concurrently.
Parameters
dataThe data to push.
Returns
Whether the push was successful. Returns false if the queue is full.

Member Data Documentation

◆ queue

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

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