Run the session loop
DeskLoop drains the rings as reader 7, fires timers, and stops when it sees a control message whose kind is 1. beat returns immediately once the loop has stopped. A timer id of 0 is rejected. A timer with every_us of 0 fires once. There are 32 timer slots.
void on_quote(void*, const pitlane::Quote&) {}
pitlane::DeskLoop loop;
loop.add_timer(1, /*when_us=*/1000, /*every_us=*/0);
pitlane::LoopHooks hooks{};
hooks.on_quote = on_quote;
loop.beat(*desk, /*now_us=*/1000, hooks);
The hooks are function pointers: on_quote, on_report, on_pulse, on_print, on_algo, on_query, on_pack_req, on_pack_rsp, on_log, on_control, and on_timer. Only the hooks you set are called. Messages published for this loop must include reader bit 7, or use a mask of 0.