]> git.sesse.net Git - stockfish/commitdiff
When exiting wake up all threads at once
authorMarco Costalba <mcostalba@gmail.com>
Mon, 26 Sep 2011 05:07:11 +0000 (06:07 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 2 Oct 2011 05:54:43 +0000 (06:54 +0100)
It seems we have a very rare crash under Linux, once
every 10K games without this patch.

Is faster to wake up all the threads, especially on SMP,
where the threads can then exit in parallel while the main
thread is waiting for the next one to terminate.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found