mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
First work for each thread is now queued in advance.
This commit is contained in:
parent
e9a397d4b9
commit
5969d65a04
4
main.c
4
main.c
@ -873,7 +873,7 @@ static void *miner_thread(void *userdata)
|
||||
/* Request the next work item at 2/3 of the scantime */
|
||||
unsigned const int request_interval = opt_scantime * 2 / 3 ? : 1;
|
||||
unsigned const long request_nonce = MAXTHREADS / 3 * 2;
|
||||
bool requested = false;
|
||||
bool requested = true;
|
||||
|
||||
/* Set worker threads to nice 19 and then preferentially to SCHED_IDLE
|
||||
* and if that fails, then SCHED_BATCH. No need for this to be an
|
||||
@ -1107,7 +1107,7 @@ static void *gpuminer_thread(void *userdata)
|
||||
/* Request the next work item at 2/3 of the scantime */
|
||||
unsigned const int request_interval = opt_scantime * 2 / 3 ? : 1;
|
||||
unsigned const long request_nonce = MAXTHREADS / 3 * 2;
|
||||
bool requested = false;
|
||||
bool requested = true;
|
||||
|
||||
res = calloc(BUFFERSIZE, 1);
|
||||
blank_res = calloc(BUFFERSIZE, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user