mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03: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;
|
curSplitPoint = NULL;
|
||||||
start_fn = fn;
|
start_fn = fn;
|
||||||
idx = Threads.size();
|
idx = Threads.size();
|
||||||
|
do_sleep = true;
|
||||||
do_sleep = (fn != &Thread::main_loop); // Avoid a race with start_searching()
|
|
||||||
|
|
||||||
if (!thread_create(handle, start_routine, this))
|
if (!thread_create(handle, start_routine, this))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue