ThreadPinning reads the sibling groups from the kernel topology and pins the calling thread to a cpu set. It is stateless and per-thread: a caller reads the groups, picks the cpus for a thread and pins it, so any mapping of threads to cpus is expressible.
3 lines
83 B
C++
3 lines
83 B
C++
#include "UnitTest++/UnitTest++.h"
|
|
|
|
int main() { return UnitTest::RunAllTests(); }
|