X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=d900cbfcea1a418aec9f8f4976ab70a0d95c3d8d;hp=65e170a0628b51dd4a1a3f0e20fc5c94d6628241;hb=e0504ab876a997321102f040ab88203cb893db12;hpb=0d9a9f5e985c13852cf9f29767e95f295bb29575 diff --git a/src/thread.cpp b/src/thread.cpp index 65e170a0..d900cbfc 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -37,8 +37,6 @@ Thread::Thread() { resetCalls = exit = false; maxPly = callsCnt = 0; tbHits = 0; - history.clear(); - counterMoves.clear(); idx = Threads.size(); // Start from 0 std::unique_lock lk(mutex); @@ -125,7 +123,7 @@ void Thread::idle_loop() { void ThreadPool::init() { - push_back(new MainThread); + push_back(new MainThread()); read_uci_options(); } @@ -152,7 +150,7 @@ void ThreadPool::read_uci_options() { assert(requested > 0); while (size() < requested) - push_back(new Thread); + push_back(new Thread()); while (size() > requested) delete back(), pop_back();