1
0
Fork 0

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.
sf_3_base
Marco Costalba 2013-01-13 17:04:39 +01:00
parent ea6c1f7a17
commit 869c924410
1 changed files with 1 additions and 2 deletions

View File

@ -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))
{