This class template represents a lock-free multiple producers single consumer queue.
More...
#include <trantor/utils/LockFreeQueue.h>
|
| void | enqueue (T &&input) |
| | Put a item into the queue.
|
|
void | enqueue (const T &input) |
| bool | dequeue (T &output) |
| | Get a item from the queue.
|
|
bool | empty () |
|
|
| NonCopyable (const NonCopyable &)=delete |
|
NonCopyable & | operator= (const NonCopyable &)=delete |
|
| NonCopyable (NonCopyable &&) noexcept(true)=default |
|
NonCopyable & | operator= (NonCopyable &&) noexcept(true)=default |
template<typename T>
class trantor::MpscQueue< T >
This class template represents a lock-free multiple producers single consumer queue.
- Template Parameters
-
| T | The type of the items in the queue. |
◆ dequeue()
Get a item from the queue.
- Parameters
-
- Returns
- false if the queue is empty.
- Note
- This method must be called in a single thread.
◆ enqueue()
Put a item into the queue.
- Parameters
-
- Note
- This method can be called in multiple threads.
The documentation for this class was generated from the following file: