Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hello im trying read RDTSC as system timer to do so i read it in first core
SetThreadAffinityMask(GetCurrentThread,1); but its dont work so the alternative is start it with /affinity 1 and thats work how its possible?
start /affinity 1 myrdtsc.exe
THREAD_ALL_ACCESS also fix that :)
quint64 threadId = (quint64)QThread::currentThreadId();
HANDLE handle = OpenThread(THREAD_ALL_ACCESS, false, threadId);
SetThreadAffinityMask(handle, 0x01);