projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
58c2fe3
)
Reset Thread::maxPly before a new search
author
Marco Costalba
<mcostalba@gmail.com>
Sun, 25 Mar 2012 15:44:55 +0000 (16:44 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sun, 25 Mar 2012 15:44:55 +0000 (16:44 +0100)
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/thread.cpp
patch
|
blob
|
history
diff --git
a/src/thread.cpp
b/src/thread.cpp
index
ab20d78
..
9f5a13f
100644
(file)
--- a/
src/thread.cpp
+++ b/
src/thread.cpp
@@
-227,9
+227,10
@@
void ThreadsManager::read_uci_options() {
void ThreadsManager::wake_up() {
- for (int i = 1; i < size(); i++) // Main thread is already running
+ for (int i = 0; i < size(); i++)
{
threads[i]->do_sleep = false;
+ threads[i]->maxPly = 0;
if (!useSleepingThreads)
threads[i]->wake_up();