Browse Source

Allow LP to reset block detect and block detect lp flags to know who really came first.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
b643b56a95
  1. 7
      main.c

7
main.c

@ -2073,8 +2073,6 @@ static void restart_threads(void) @@ -2073,8 +2073,6 @@ static void restart_threads(void)
{
int i, stale;
block_changed = BLOCK_NONE;
/* Discard staged work that is now stale */
stale = discard_stale();
@ -4115,11 +4113,6 @@ static void *watchdog_thread(void *userdata) @@ -4115,11 +4113,6 @@ static void *watchdog_thread(void *userdata)
mutex_unlock(&curses_lock);
}
if (unlikely(work_restart[watchdog_thr_id].restart)) {
restart_threads();
work_restart[watchdog_thr_id].restart = 0;
}
gettimeofday(&now, NULL);
for (i = 0; i < total_pools; i++) {

Loading…
Cancel
Save