exchange
Low-latency exchange in C++
Loading...
Searching...
No Matches
action_spmc_sender.hpp
Go to the documentation of this file.
1#pragma once
2#include "shared_memory.hpp"
4#include <type_traits>
5
6extern "C"
7{
8#include "concurrent/aeron_broadcast_transmitter.h"
9}
10
11namespace exchange::server
12{
13
15{
16 static constexpr int32_t messageTypeId{1};
17
18 aeron_broadcast_transmitter_t transmitter;
19
20 public:
21 explicit ActionSpmcSender(SharedMemory &sharedMemory);
22
28 void send(const Action &action) noexcept;
29};
30
31} // namespace exchange::server
ActionSpmcSender(SharedMemory &sharedMemory)
Definition action_spmc_sender.cpp:7
void send(const Action &action) noexcept
Definition action_spmc_sender.cpp:14
Definition shared_memory.hpp:15
Definition main.hpp:4
Definition action.hpp:17