Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::md_feed::packet_feed_traits Struct Reference

Counts the queue bytes a receiver overwrote before the exchange thread drained them. More...

#include <md_feed/multicast_packet_feed.hpp>

Inheritance diagram for slick::sim::md_feed::packet_feed_traits:
Collaboration diagram for slick::sim::md_feed::packet_feed_traits:

Static Public Attributes

static constexpr bool enable_loss_detection = true

Detailed Description

Counts the queue bytes a receiver overwrote before the exchange thread drained them.

slick::queue only counts that in a debug build (debug_queue_traits), so ask for it explicitly rather than have a release build report the same loss as nothing. Costs one cacheline, and one relaxed fetch_add each time the exchange thread finds it was lapped.

Definition at line 43 of file multicast_packet_feed.hpp.

Member Data Documentation

◆ enable_loss_detection

bool slick::sim::md_feed::packet_feed_traits::enable_loss_detection = true
staticconstexpr

Definition at line 44 of file multicast_packet_feed.hpp.


The documentation for this struct was generated from the following file: