Rev 96 | Rev 169 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 96 | Rev 154 | ||
|---|---|---|---|
| Line 60... | Line 60... | ||
| 60 | Pawns::Table pawnsTable; |
60 | Pawns::Table pawnsTable; |
| 61 | Material::Table materialTable; |
61 | Material::Table materialTable; |
| 62 | Endgames endgames; |
62 | Endgames endgames; |
| 63 | size_t idx, PVIdx; |
63 | size_t idx, PVIdx; |
| 64 | int maxPly, callsCnt; |
64 | int maxPly, callsCnt; |
| - | 65 | uint64_t tbHits; |
|
| 65 | 66 | ||
| 66 | Position rootPos; |
67 | Position rootPos; |
| 67 | Search:: |
68 | Search::RootMoves rootMoves; |
| 68 | Depth rootDepth; |
69 | Depth rootDepth; |
| 69 | HistoryStats history; |
- | |
| 70 | MoveStats counterMoves; |
- | |
| 71 | Depth completedDepth; |
70 | Depth completedDepth; |
| 72 | std::atomic_bool resetCalls; |
71 | std::atomic_bool resetCalls; |
| - | 72 | HistoryStats history; |
|
| - | 73 | MoveStats counterMoves; |
|
| - | 74 | FromToStats fromTo; |
|
| - | 75 | CounterMoveHistoryStats counterMoveHistory; |
|
| 73 | }; |
76 | }; |
| 74 | 77 | ||
| 75 | 78 | ||
| 76 | /// MainThread is a derived class with a specific overload for the main thread |
79 | /// MainThread is a derived class with a specific overload for the main thread |
| 77 | 80 | ||
| Line 92... | Line 95... | ||
| 92 | 95 | ||
| 93 | void init(); // No constructor and destructor, threads rely on globals that should |
96 | void init(); // No constructor and destructor, threads rely on globals that should |
| 94 | void exit(); // be initialized and valid during the whole thread lifetime. |
97 | void exit(); // be initialized and valid during the whole thread lifetime. |
| 95 | 98 | ||
| 96 | MainThread* main() { return static_cast<MainThread*>(at(0)); } |
99 | MainThread* main() { return static_cast<MainThread*>(at(0)); } |
| 97 | void start_thinking( |
100 | void start_thinking(Position&, StateListPtr&, const Search::LimitsType&); |
| 98 | void read_uci_options(); |
101 | void read_uci_options(); |
| 99 |
|
102 | uint64_t nodes_searched() const; |
| - | 103 | uint64_t tb_hits() const; |
|
| - | 104 | ||
| - | 105 | private: |
|
| - | 106 | StateListPtr setupStates; |
|
| 100 | }; |
107 | }; |
| 101 | 108 | ||
| 102 | extern ThreadPool Threads; |
109 | extern ThreadPool Threads; |
| 103 | 110 | ||
| 104 | #endif // #ifndef THREAD_H_INCLUDED |
111 | #endif // #ifndef THREAD_H_INCLUDED |