Browse Source

is already locked at this point

djm34
Jan Berdajs 10 years ago
parent
commit
d1f7ef6133
  1. 3
      sgminer.c

3
sgminer.c

@ -7074,10 +7074,8 @@ static void *watchdog_thread(void __maybe_unused *userdata) @@ -7074,10 +7074,8 @@ static void *watchdog_thread(void __maybe_unused *userdata)
schedstart.tm.tm_hour, schedstart.tm.tm_min);
sched_paused = true;
rd_lock(&mining_thr_lock);
for (i = 0; i < mining_threads; i++)
mining_thr[i]->pause = true;
rd_unlock(&mining_thr_lock);
} else if (sched_paused && should_run()) {
applog(LOG_WARNING, "Restarting execution as per start time %02d:%02d scheduled",
schedstart.tm.tm_hour, schedstart.tm.tm_min);
@ -7786,7 +7784,6 @@ static void restart_mining_threads(unsigned int new_n_threads) @@ -7786,7 +7784,6 @@ static void restart_mining_threads(unsigned int new_n_threads)
thr->device_thread = j;
cgtime(&thr->last);
cgpu->thr[j] = thr;
}
}

Loading…
Cancel
Save