From 5969d65a041334f55f73dcdf19aa53edf7ace08f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 6 Jul 2011 15:57:50 +1000 Subject: [PATCH] First work for each thread is now queued in advance. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index f6aa7c50..4a65c868 100644 --- a/main.c +++ b/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);