Browse Source

Set the priority of miner threads to idle on Windows

pooler 13 years ago
parent
commit
8ace341ed7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compat.h

+ 1 - 1
compat.h

@@ -172,7 +172,7 @@ enum {
 
 static inline int setpriority(__maybe_unused int which, __maybe_unused int who, __maybe_unused int prio)
 {
-	return -!SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
+	return -!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE);
 }
 
 typedef unsigned long int ulong;