Set the priority of miner threads to idle on Windows
This commit is contained in:
parent
1b4d317966
commit
2a421866a1
1 changed files with 1 additions and 1 deletions
2
compat.h
2
compat.h
|
@ -16,7 +16,7 @@ enum {
|
||||||
|
|
||||||
static inline int setpriority(int which, int who, int prio)
|
static inline int setpriority(int which, int who, int prio)
|
||||||
{
|
{
|
||||||
return -!SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
|
return -!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
Loading…
Reference in a new issue