X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=d6a48eca73d14937f19212d462d9a120398d21d0;hp=4a077962661e0cbbb2f8c370b81329b97672d9eb;hb=HEAD;hpb=2d0237db3f0e596fb06e3ffbadba84dcc4e018f6 diff --git a/src/thread.h b/src/thread.h index 4a077962..cb2f6db1 100644 --- a/src/thread.h +++ b/src/thread.h @@ -34,11 +34,7 @@ namespace Stockfish { -// Thread class keeps together all the thread-related stuff. We use -// per-thread pawn and material hash tables so that once we get a -// pointer to an entry its lifetime is unlimited and we don't have -// to care about someone changing the entry under our feet. - +// Thread class keeps together all the thread-related stuff. class Thread { std::mutex mutex; @@ -72,11 +68,11 @@ class Thread { ButterflyHistory mainHistory; CapturePieceToHistory captureHistory; ContinuationHistory continuationHistory[2][2]; + PawnHistory pawnHistory; }; // MainThread is a derived class specific for main thread - struct MainThread: public Thread { using Thread::Thread; @@ -97,7 +93,6 @@ struct MainThread: public Thread { // ThreadPool struct handles all the threads-related stuff like init, starting, // parking and, most importantly, launching a thread. All the access to threads // is done through this class. - struct ThreadPool { void start_thinking(Position&, StateListPtr&, const Search::LimitsType&, bool = false);