X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=645482673ba1b93fbc1dfe9449b329aee0abf049;hp=56d000f3f94438275a83c88eb06ad7c2582fd921;hb=800410eef1c0811d046ee2332b3afda21284b876;hpb=e005270fb6fb5a21ccfa91186181707882aef285 diff --git a/src/thread.h b/src/thread.h index 56d000f3..64548267 100644 --- a/src/thread.h +++ b/src/thread.h @@ -115,6 +115,8 @@ struct Thread : public ThreadBase { virtual void idle_loop(); bool cutoff_occurred() const; bool is_available_to(const Thread* master) const; + ExtMove* get_moves_array() { return &movePages[curPage += MAX_MOVES]; } + void free_moves_array() { curPage -= MAX_MOVES; } template void split(Position& pos, const Search::Stack* ss, Value alpha, Value beta, Value* bestValue, Move* bestMove, @@ -125,6 +127,8 @@ struct Thread : public ThreadBase { Endgames endgames; Pawns::Table pawnsTable; Position* activePosition; + std::vector movePages; + int curPage; size_t idx; int maxPly; SplitPoint* volatile activeSplitPoint;