Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order Engine knows exactly what code to call, user should register on the mentioned callback on HFT Antenna start. Below is the snippet from the "Router" sample for reference:

Code Block
languagecpp
Engine::FixEngine::InitParameters params;
params.threadPoolListener_ = listener;
FixEngine::init( params );



Note

The way described above works for all the threads except async logger thread.

...

Аsync logger thread affinity is configured in a different way by means of g_platformProps.logger_CPUMask, which is parameter of the global settings object platformProps. Below is the snippet from the "Router" sample for reference:

Code Block
languagecpp
g_platformProps.logger_CPUMask = mask;
platform_initialize(...);
launch_logger_thread();