mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-16 23:26:23 +08:00
Retire obsolete race hack
This hack was introduced in d282cf6964
to workaround a race with start_searching(),
but these days is no more needed.
No functional change.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user