]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Do not overwrite valuable TT data after probcut.
[stockfish] / src / thread.h
index 41d2b8f6d271769df032888d7c633bb7c20a6581..a69e1d10e4556d155e1a117be85aee13e0445471 100644 (file)
@@ -88,7 +88,7 @@ struct MainThread : public Thread {
   void check_time();
 
   double previousTimeReduction;
-  Value previousScore;
+  Value bestPreviousScore;
   Value iterValue[4];
   int callsCnt;
   bool stopOnPonderhit;
@@ -109,6 +109,9 @@ struct ThreadPool : public std::vector<Thread*> {
   MainThread* main()        const { return static_cast<MainThread*>(front()); }
   uint64_t nodes_searched() const { return accumulate(&Thread::nodes); }
   uint64_t tb_hits()        const { return accumulate(&Thread::tbHits); }
+  Thread* get_best_thread() const;
+  void start_searching();
+  void wait_for_search_finished() const;
 
   std::atomic_bool stop, increaseDepth;