mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 18:14:20 +00:00
Minimise impact on GUIs by dropping priority and policy in gpu mining threads if dynamic mode is enabled.
This commit is contained in:
parent
08cf074206
commit
01eb4c599d
6
main.c
6
main.c
@ -1654,6 +1654,12 @@ static void *gpuminer_thread(void *userdata)
|
|||||||
unsigned const long request_nonce = MAXTHREADS / 3 * 2;
|
unsigned const long request_nonce = MAXTHREADS / 3 * 2;
|
||||||
bool requested = true;
|
bool requested = true;
|
||||||
|
|
||||||
|
if (opt_dynamic) {
|
||||||
|
/* Minimise impact on desktop if we want dynamic mode */
|
||||||
|
setpriority(PRIO_PROCESS, 0, 19);
|
||||||
|
drop_policy();
|
||||||
|
}
|
||||||
|
|
||||||
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
|
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
|
||||||
|
|
||||||
res = calloc(BUFFERSIZE, 1);
|
res = calloc(BUFFERSIZE, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user