mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00: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:
parent
ea6c1f7a17
commit
869c924410
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue