is this the right way of create thread and set the affinity using std::thread
std::thread myThread(threadFunction);
HANDLE threadHandle = myThread.native_handle();
SetThreadAffinityMask(threadHandle, 1);
// Join the thread
myThread.join();
1
is this the right way of create thread and set the affinity using std::thread
std::thread myThread(threadFunction);
HANDLE threadHandle = myThread.native_handle();
SetThreadAffinityMask(threadHandle, 1);
// Join the thread
myThread.join();
1