|
exchange
Low-latency exchange in C++
|
Classes | |
| class | Universe |
| class | LogService |
Enumerations | |
| enum class | LogProducer : uint8_t { ARCHIVER , CANDLESTICK_PUBLISHER , CLIENT , EXECUTION_PUBLISHER , GATEWAY , MATCHING_ENGINE , ORDER_MANAGER , ORDERBOOK_PUBLISHER , BENCHMARK } |
Functions | |
| bool | pinToCore () noexcept |
| void | reportException (const std::shared_ptr< spdlog::logger > &logger, const std::exception &err) noexcept |
| void | reportUnknownException (const std::shared_ptr< spdlog::logger > &logger) noexcept |
Variables | |
| constexpr uint32_t | PREFERRED_CORE = 2 |
|
strong |
|
noexcept |
Attempts to pin the current thread to a single CPU core by changing the CPU affinity settings. It picks the first core the process is allowed to run on that is at least core 2, which is likely to be a different physical core than 0/1, which are often used for interrupts. If only cores 0/1 are allowed, it picks the highest one.

|
noexcept |
Tries to log that an exception occurred. Falls back to writing to stderr manually if the logger itself fails.
| logger | The logger to attempt to write to. |
| err | The exception to log. |

|
noexcept |
Tries to log that an unknown exception occurred. Falls back to writing to stderr manually if the logger itself fails.
| logger | The logger to attempt to write to. |

|
constexpr |