X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=fd7343a8f57a1d9d2bc0f1c40f27c94ad1148098;hp=39753f40cfdfe4e2f3397bff2bca5c6c26f922e7;hb=27c5cb59127101d834636d4faa0062d4e7bd05ce;hpb=80d7556af785f57a4f90d121c57c9c2f85a2963e diff --git a/src/thread.h b/src/thread.h index 39753f40..fd7343a8 100644 --- a/src/thread.h +++ b/src/thread.h @@ -34,10 +34,6 @@ #include "search.h" #include "thread_win32.h" -struct Thread; - -const size_t MAX_THREADS = 128; - /// ThreadBase struct is the base of the hierarchy from where we derive all the /// specialized thread classes. @@ -78,9 +74,9 @@ struct Thread : public ThreadBase { Position rootPos; Search::RootMoveVector rootMoves; Depth rootDepth; - Search::Stack stack[MAX_PLY+4]; HistoryStats history; MovesStats counterMoves; + Depth completedDepth; }; @@ -100,6 +96,7 @@ struct TimerThread : public ThreadBase { static const int Resolution = 5; // Millisec between two check_time() calls virtual void idle_loop(); + void check_time(); bool run = false; };