X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=0517afc5d149d6f0318f0f44a611d35569fb67f6;hp=c11d17873df5621ed4892ddbce016332ef55e24c;hb=80d59eea392fc073f6d0ba29cb9a97e3d705ee58;hpb=fcee0ce6a39a28ffdfa4b1ed438b353a895edb6b diff --git a/src/thread.h b/src/thread.h index c11d1787..0517afc5 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,6 +56,7 @@ public: void idle_loop(); void start_searching(); void wait_for_search_finished(); + int best_move_count(Move move); Pawns::Table pawnsTable; Material::Table materialTable; @@ -70,7 +71,7 @@ public: CounterMoveHistory counterMoves; ButterflyHistory mainHistory; CapturePieceToHistory captureHistory; - ContinuationHistory continuationHistory; + ContinuationHistory continuationHistory[2][2]; Score contempt; };