B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Utils::ThreadAttrs Struct Reference

Thread configuration parameters. More...

#include <B2BITS_ThreadsPool.h>

+ Collaboration diagram for Utils::ThreadAttrs:

Public Member Functions

 ThreadAttrs (const char *name="FA thread")
 Constructor. More...
 
 ThreadAttrs (const std::string &name, System::u64 affinityMask=0, System::i32 assignment=0, System::i32 realtimePrio=0)
 Constructor. More...
 

Public Attributes

System::u64 affinityMask_
 thread affinity bitmask More...
 
System::i32 assignment_
 thread role More...
 
std::string name_
 thread name More...
 
System::i32 realtimePrio_
 scheduler realtime priority of the thread More...
 

Detailed Description

Thread configuration parameters.

Constructor & Destructor Documentation

Utils::ThreadAttrs::ThreadAttrs ( const char *  name = "FA thread")
inline

Constructor.

Parameters
namethread name
Utils::ThreadAttrs::ThreadAttrs ( const std::string &  name,
System::u64  affinityMask = 0,
System::i32  assignment = 0,
System::i32  realtimePrio = 0 
)
inline

Constructor.

Parameters
namethread name
affinityMaskthe bitmask that defines allowed CPU cores, 0 means do not change affinity
assignmentdefines thread role e.g. Engine::ThreadsAssignment::DISPATCHER_THREAD
realtimePriodefines scheduler realtime priority of the thread (Linux only) 0 means do not change priority

Member Data Documentation

System::u64 Utils::ThreadAttrs::affinityMask_

thread affinity bitmask

System::i32 Utils::ThreadAttrs::assignment_

thread role

std::string Utils::ThreadAttrs::name_

thread name

System::i32 Utils::ThreadAttrs::realtimePrio_

scheduler realtime priority of the thread