Browse Source

When shutting down, set work restart flag (and trigger notifier) to help mining threads escape to their main minerloop (and check for shutdown)

Luke Dashjr 12 years ago
parent
commit
1d9c4ea696
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -3544,7 +3544,9 @@ static void __kill_work(void)
 			continue;
 
 		cgpu->shutdown = true;
+		thr->work_restart = true;
 		notifier_wake(thr->notifier);
+		notifier_wake(thr->work_restart_notifier);
 	}
 
 	sleep(1);