X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=79c6e43fbfef370367f37ca5bbd75ee53c2f39f2;hp=af506609ed9f1e1ee0610e19fe63044e13de23ad;hb=3a3ca6af0390d74427c218f29cb5fe1a913efb42;hpb=bad18bccb60c874410edd3f61624696d3abc3cbc diff --git a/src/thread.h b/src/thread.h index af506609..79c6e43f 100644 --- a/src/thread.h +++ b/src/thread.h @@ -42,8 +42,8 @@ class Thread { - Mutex mutex; - ConditionVariable cv; + std::mutex mutex; + std::condition_variable cv; size_t idx; bool exit = false, searching = true; // Set before starting std::thread NativeThread stdThread; @@ -56,14 +56,14 @@ public: void idle_loop(); void start_searching(); void wait_for_search_finished(); + int best_move_count(Move move); Pawns::Table pawnsTable; Material::Table materialTable; - Endgames endgames; - size_t pvIdx, pvLast; + size_t pvIdx, pvLast, shuffleExts; int selDepth, nmpMinPly; Color nmpColor; - std::atomic nodes, tbHits; + std::atomic nodes, tbHits, bestMoveChanges; Position rootPos; Search::RootMoves rootMoves; @@ -85,7 +85,7 @@ struct MainThread : public Thread { void search() override; void check_time(); - double bestMoveChanges, previousTimeReduction; + double previousTimeReduction; Value previousScore; int callsCnt; bool stopOnPonderhit;