Set the priority of miner threads to idle on Windows

This commit is contained in:
pooler 2012-06-07 00:22:23 +02:00
parent 1b4d317966
commit 2a421866a1

View file

@ -16,7 +16,7 @@ enum {
static inline int setpriority(int which, int who, int prio)
{
return -!SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
return -!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE);
}
#endif /* WIN32 */