]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Introduce pawn structure based history
[stockfish] / src / thread.h
index 4a077962661e0cbbb2f8c370b81329b97672d9eb..37a4a6ca2bc6215448bab8634656d9d1f8a1d7ed 100644 (file)
@@ -38,7 +38,6 @@ namespace Stockfish {
 // 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.
-
 class Thread {
 
     std::mutex              mutex;
@@ -72,11 +71,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 +96,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);