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:
Engine::FixEngine::InitParameters params; params.threadPoolListener_ = listener; FixEngine::init( params );
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:
g_platformProps.logger_CPUMask = mask; platform_initialize(...); launch_logger_thread();