From 869c9244101ce5c6090fff5aeaee52142a572b53 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 13 Jan 2013 17:04:39 +0100 Subject: [PATCH] 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. --- src/thread.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) { -- 2.39.2