From 2a421866a1a15c4ce4af9af4038a71b8dd6255e8 Mon Sep 17 00:00:00 2001 From: pooler Date: Thu, 7 Jun 2012 00:22:23 +0200 Subject: [PATCH] Set the priority of miner threads to idle on Windows --- compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat.h b/compat.h index 3eba4a5..cb76309 100644 --- a/compat.h +++ b/compat.h @@ -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 */