projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ea6c1f7
)
Retire obsolete race hack
author
Marco Costalba
<mcostalba@gmail.com>
Sun, 13 Jan 2013 16:04:39 +0000 (17:04 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sun, 13 Jan 2013 16:05:30 +0000 (17:05 +0100)
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
patch
|
blob
|
history
diff --git
a/src/thread.cpp
b/src/thread.cpp
index
712b04a
..
fe19331
100644
(file)
--- 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))
{