Revert "Check for an available slave early on"
authorGary Linscott <glinscott@gmail.com>
Thu, 26 Jun 2014 15:16:36 +0000 (11:16 -0400)
committerGary Linscott <glinscott@gmail.com>
Thu, 26 Jun 2014 15:16:36 +0000 (11:16 -0400)
This reverts commit ce1c260ea97c14eea996d0a2638f4876ccbc412b.

src/search.cpp

index 24fde88..28fecf8 100644 (file)
@@ -978,8 +978,8 @@ moves_loop: // When in check and at SpNode search starts from here
 
       // Step 19. Check for splitting the search
       if (   !SpNode
+          &&  Threads.size() >= 2
           &&  depth >= Threads.minimumSplitDepth
-          &&  Threads.available_slave(thisThread)
           &&  (   !thisThread->activeSplitPoint
                || !thisThread->activeSplitPoint->allSlavesSearching)
           &&  thisThread->splitPointsSize < MAX_SPLITPOINTS_PER_THREAD)