reactivemarkets / toolbox-cpp

The Reactive C++ Toolbox is an open source library of C++20 components designed for efficient, asynchronous network applications on the Linux platform.
https://reactivemarkets.github.io/toolbox-cpp/
Other
21 stars 20 forks source link

Path and thread affinity enhancements #50

Closed markaylett closed 5 years ago

markaylett commented 5 years ago

This PR provides the following enhancements as separate commits:

1) Specialise TypeTraits for filesystem path

The ThreadConfig structure should be extended to include an isolcpus-style affinity mask, along with helper functions for parsing and setting thread affinity.

2) Extend thread config to include affinity

Add TypeTraits specialisation for filesystem paths, so that paths can be specified as arguments to command-line options.