X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.h;h=3d175483169c6fea6ad4d7e6810fdff3588b168f;hb=adb71b8096436a54bf2326d5c69991b16ba5bafa;hp=04e023067999c63fefb432cfa67cfcda1b1787f5;hpb=32d3a07c6710e84d78999cb69c6a866b0bfff482;p=stockfish diff --git a/src/thread.h b/src/thread.h index 04e02306..3d175483 100644 --- a/src/thread.h +++ b/src/thread.h @@ -47,7 +47,6 @@ struct SplitPoint { MovePicker* mp; SplitPoint* parent; - // Shared data Lock lock; volatile uint64_t slavesMask; @@ -86,8 +85,8 @@ public: void wait_for_stop_or_ponderhit(); SplitPoint splitPoints[MAX_SPLITPOINTS_PER_THREAD]; - MaterialInfoTable materialTable; - PawnInfoTable pawnTable; + MaterialTable materialTable; + PawnTable pawnTable; int threadID; int maxPly; Lock sleepLock; @@ -112,7 +111,7 @@ class ThreadsManager { static storage duration are automatically set to zero before enter main() */ public: - void init(); // No c'tor becuase Threads is static and we need stuff initialized + void init(); // No c'tor becuase Threads is static and we need engine initialized ~ThreadsManager(); Thread& operator[](int id) { return *threads[id]; } @@ -125,9 +124,9 @@ public: void read_uci_options(); bool available_slave_exists(int master) const; void set_timer(int msec); - void stop_thinking(); - void start_thinking(const Position& pos, const Search::LimitsType& limits, - const std::set& = std::set(), bool async = false); + void wait_for_search_finished(); + void start_searching(const Position& pos, const Search::LimitsType& limits, + const std::set& = std::set()); template Value split(Position& pos, Search::Stack* ss, Value alpha, Value beta, Value bestValue, Move* bestMove,