projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2feeb20
)
Document an assert in idle_loop()
author
Marco Costalba
<mcostalba@gmail.com>
Mon, 11 Oct 2010 18:56:07 +0000 (19:56 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Mon, 11 Oct 2010 18:56:35 +0000 (19:56 +0100)
Thanks to Bruno Causse for the clarification.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
fca542e
..
93243ed
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-2384,6
+2384,8
@@
namespace {
lock_grab(&(sp->lock));
lock_release(&(sp->lock));
+ // In helpful master concept a master can help only a sub-tree, and
+ // because here is all finished is not possible master is booked.
assert(threads[threadID].state == THREAD_AVAILABLE);
threads[threadID].state = THREAD_SEARCHING;