blob: 42d057567f56f058ad2089e6eee17bf9173200e2 [file] [log] [blame]
tanjent@gmail.comf67ce942011-03-14 09:11:18 +00001#include "Platform.h"
2
3#if defined(_MSC_VER)
4
5void SetAffinity ( int /*cpu*/ )
6{
7}
8
9#else
10
11#include <windows.h>
12
13void SetAffinity ( int cpu )
14{
15 SetProcessAffinityMask(GetCurrentProcess(),cpu);
16}
17
18#endif