B2BITS CME MDP Handler API Reference
Public Member Functions | Public Attributes | List of all members
MarketDataServiceThreadOptions Struct Reference

Market data service thread options.

#include <B2BITS_CmeMdpMarketDataService.h>

Public Member Functions

 MarketDataServiceThreadOptions ()
 

Public Attributes

bool threadPoolEnabled_
 Defines whether to use a pool of shared threads for all connections or use a dedicated thread for each connection. More...
 
u32 threadPoolSize_
 Number of shared threads in the pool. More...
 
bool spinningEnabled_
 Defines whether to use spinning to reduce latency at the cost of CPU load. More...
 
u64 affinityMask_
 Bitwise mask of CPUs to bind threads to. More...
 
ThreadPriority priority_
 Defines thread priority. More...
 
u32 dblBFeedThreadCount_
 Number of threads to process data from Feed-B, if socket type is Myricom DBL and threadPoolEnabled_ is ON. More...
 
bool dblSpinningInOneThread_
 Limits access to DBL device only to one thread at time. More...
 

Constructor & Destructor Documentation

Member Data Documentation

bool threadPoolEnabled_
u32 threadPoolSize_
bool spinningEnabled_
u64 affinityMask_

0 indicates no thread binding.

ThreadPriority priority_
u32 dblBFeedThreadCount_
bool dblSpinningInOneThread_

Usefull if:

  1. MarketDataServiceSocketOptions::socketType_ is stMyricomDBL
  2. MarketDataServiceThreadOptions::spinningEnabled_ is ON
  3. and MarketDataServiceThreadOptions::threadPoolEnabled_ is ON Minimizes overal CPU usage. If ON, only one thread uses CPU at 100%; otherwise all threads in pool will use CPU at 100%.