|
Leka
A low-latency C++20 price-time-priority limit order book and matching engine
|
Generates process-wide monotonic sequence numbers. More...
#include <sequence_number_generator.hpp>
Static Public Member Functions | |
| static SequenceNumber | generate () |
| Returns the next valid sequence number or throws on exhaustion. | |
Generates process-wide monotonic sequence numbers.
Sequence numbers identify accepted engine processing order and are assigned only after an incoming order passes validation and duplicate checks.
Definition at line 14 of file sequence_number_generator.hpp.
|
static |
Returns the next valid sequence number or throws on exhaustion.
Advances the global processing sequence without allowing wraparound.
Definition at line 12 of file sequence_number_generator.cpp.