projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
95b2408
)
Small tweak to idle_loop()
author
Marco Costalba
<mcostalba@gmail.com>
Fri, 29 Aug 2014 12:59:32 +0000 (14:59 +0200)
committer
Joona Kiiski
<joona.kiiski@gmail.com>
Thu, 4 Sep 2014 19:19:03 +0000 (20:19 +0100)
In case of a succesful late join we set again
'searching' flag, so we can restart search
immediately without an useless lock/unlock
cycle.
No functional change.
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
50f5939
..
340d993
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-1425,7
+1425,7
@@
void Thread::idle_loop() {
while (!exit)
{
// If this thread has been assigned work, launch a search
- if (searching)
+ while (searching)
{
Threads.mutex.lock();