X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=6c1d729987d90bb237f0b0c9034d78d19aa2d7f0;hp=e69120842c58f0be117c0b16e2c7800b14f54d26;hb=58d3ee61757215292b48e32caec9931d901c2940;hpb=e917bd59b1e317c6b48dc676473359fdfb86d9d4 diff --git a/src/thread.cpp b/src/thread.cpp index e6912084..6c1d7299 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -136,10 +136,10 @@ void ThreadPool::set(size_t requested) { while (size() < requested) push_back(new Thread(size())); clear(); - } - // Reallocate the hash with the new threadpool size - TT.resize(Options["Hash"]); + // Reallocate the hash with the new threadpool size + TT.resize(Options["Hash"]); + } } /// ThreadPool::clear() sets threadPool data to initial values. @@ -162,8 +162,8 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, main()->wait_for_search_finished(); - stopOnPonderhit = stop = false; - ponder = ponderMode; + main()->stopOnPonderhit = stop = false; + main()->ponder = ponderMode; Search::Limits = limits; Search::RootMoves rootMoves;