]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Remove Thread::WORKISWAITING
[stockfish] / src / search.cpp
index 9923ef1dbc1fdf5ce2d6493dc05662d599900e29..65b128f5f0dce6a18133113e2f7ecf3954c3101d 100644 (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;