From: Marco Costalba Date: Sun, 13 Jan 2013 16:04:39 +0000 (+0100) Subject: Retire obsolete race hack X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=869c9244101ce5c6090fff5aeaee52142a572b53 Retire obsolete race hack This hack was introduced in d282cf6964d493 to workaround a race with start_searching(), but these days is no more needed. No functional change. --- diff --git a/src/thread.cpp b/src/thread.cpp index 712b04a3..fe193314 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -49,8 +49,7 @@ Thread::Thread(Fn fn) : splitPoints() { curSplitPoint = NULL; start_fn = fn; idx = Threads.size(); - - do_sleep = (fn != &Thread::main_loop); // Avoid a race with start_searching() + do_sleep = true; if (!thread_create(handle, start_routine, this)) {