Skip to content

Commit

Permalink
Set the priority of miner threads to idle on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Jun 6, 2012
1 parent 1b4d317 commit 2a42186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2a42186

Please sign in to comment.