Simplify finished search in ponder/infinite mode.

In this rare case (e.g. go infinite on a stalemate),
just spin till ponderhit/stop comes.

The Thread::wait() is a renmant of the old YBWC
code, today with lazy SMP, threads don't need to
wait when outside of their idle loop.

No functional change.
This commit is contained in:
Joost VandeVondele
2017-08-04 19:48:07 +02:00
committed by Marco Costalba
parent 66c5eaebd8
commit 2783203428
4 changed files with 10 additions and 25 deletions

View File

@@ -52,9 +52,8 @@ public:
virtual ~Thread();
virtual void search();
void idle_loop();
void start_searching(bool resume = false);
void start_searching();
void wait_for_search_finished();
void wait(std::atomic_bool& condition);
Pawns::Table pawnsTable;
Material::Table materialTable;