exchange
Low-latency exchange in C++
Loading...
Searching...
No Matches
exchange::server::EventMpscQueue Class Reference

#include <event_mpsc_queue.hpp>

Public Member Functions

 EventMpscQueue (SharedMemory &sharedMemory)
Event pop () noexcept
void push (const Event &event) noexcept

Constructor & Destructor Documentation

◆ EventMpscQueue()

exchange::server::EventMpscQueue::EventMpscQueue ( SharedMemory & sharedMemory)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ pop()

Event exchange::server::EventMpscQueue::pop ( )
nodiscardnoexcept

Busy wait until there is an event to consume in the MPSC queue.

Returns
The event received the MPSC queue.

◆ push()

void exchange::server::EventMpscQueue::push ( const Event & event)
noexcept

Push an event immediately to the MPSC queue.

Parameters
eventThe event to push to the MPSC queue.

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