X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=6d3364d5c56525c1bdad9fc8af803ce8ed2234e2;hb=66c5eaebd8c3ecc00a21a9c7f214cb59db4ce4e5;hp=86fce6aa0c20020b6c54666c874a5231793d6c9e;hpb=44236f4ed9844598e1cb065937c3770a938964b2;p=stockfish diff --git a/src/thread.cpp b/src/thread.cpp index 86fce6aa..6d3364d5 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -183,11 +183,12 @@ uint64_t ThreadPool::tb_hits() const { /// and starts a new search, then returns immediately. void ThreadPool::start_thinking(Position& pos, StateListPtr& states, - const Search::LimitsType& limits) { + const Search::LimitsType& limits, bool ponderMode) { main()->wait_for_search_finished(); stopOnPonderhit = stop = false; + ponder = ponderMode; Search::Limits = limits; Search::RootMoves rootMoves;