thread: refactor: quit() 更名为 clearHistoryScore()
This commit is contained in:
parent
946aed645e
commit
188c03c734
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue