Remove Thread::WORKISWAITING

Set the state directly to Thread::SEARCHING

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-08-10 12:05:33 +01:00
parent b69d9ee3f7
commit c386ce0023
3 changed files with 2 additions and 6 deletions

View File

@@ -2187,12 +2187,10 @@ void Thread::idle_loop(SplitPoint* sp) {
}
// If this thread has been assigned work, launch a search
if (state == Thread::WORKISWAITING)
if (state == Thread::SEARCHING)
{
assert(!do_terminate);
state = Thread::SEARCHING;
// Copy split point position and search stack and call search()
SearchStack ss[PLY_MAX_PLUS_2];
SplitPoint* tsp = splitPoint;