thread: refactor: quit() 更名为 clearHistoryScore()

This commit is contained in:
Calcitem 2020-10-03 12:37:46 +08:00
parent 946aed645e
commit 188c03c734
2 changed files with 4 additions and 6 deletions

View File

@ -72,7 +72,7 @@ Thread::~Thread()
assert(!searching);
exit = true;
quit();
clearHistoryScore();
start_searching();
stdThread.join();
}
@ -97,7 +97,7 @@ void Thread::clear()
void Thread::start_searching()
{
quit();
clearHistoryScore();
std::lock_guard<std::mutex> lk(mutex);
searching = true;
@ -195,7 +195,7 @@ void Thread::act()
return;
std::lock_guard<std::mutex> lk(mutex);
quit();
clearHistoryScore();
}
void Thread::setAi(Position *p)

View File

@ -100,10 +100,8 @@ public:
void analyze(Color c);
void quit()
void clearHistoryScore()
{
loggerDebug("Timeout\n");
//requiredQuit = true; // TODO
#ifdef HOSTORY_HEURISTIC
movePicker->clearHistoryScore();
#endif