]> git.sesse.net Git - stockfish/commitdiff
Rename SplitPoint parentSstack
authorMarco Costalba <mcostalba@gmail.com>
Fri, 18 Feb 2011 16:02:25 +0000 (17:02 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 18 Feb 2011 16:04:55 +0000 (17:04 +0100)
Now that we don't have anymore a search stack array in
SplitPoint we can rename this data member to somthing more
usual.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
src/thread.h

index aa8817ac050b40fe02a51ee8ab17b189b7df7810..6d05405b6f79c9ad002824bbafd0777b132f000b 100644 (file)
@@ -1218,7 +1218,7 @@ split_point_start: // At split points actual search starts from here
               ss->bestMove = move;
 
               if (SpNode)
-                  sp->parentSstack->bestMove = move;
+                  sp->ss->bestMove = move;
           }
       }
 
@@ -2116,7 +2116,7 @@ split_point_start: // At split points actual search starts from here
             SplitPoint* tsp = threads[threadID].splitPoint;
             Position pos(*tsp->pos, threadID);
 
-            memcpy(ss, tsp->parentSstack - 1, 4 * sizeof(SearchStack));
+            memcpy(ss, tsp->ss - 1, 4 * sizeof(SearchStack));
             (ss+1)->sp = tsp;
 
             if (tsp->pvNode)
@@ -2367,7 +2367,7 @@ split_point_start: // At split points actual search starts from here
     splitPoint.moveCount = moveCount;
     splitPoint.pos = &pos;
     splitPoint.nodes = 0;
-    splitPoint.parentSstack = ss;
+    splitPoint.ss = ss;
     for (i = 0; i < activeThreads; i++)
         splitPoint.slaves[i] = 0;
 
@@ -2394,7 +2394,7 @@ split_point_start: // At split points actual search starts from here
     lock_release(&mpLock);
 
     // Tell the threads that they have work to do. This will make them leave
-    // their idle loop. But before copy search stack tail for each thread.
+    // their idle loop.
     for (i = 0; i < activeThreads; i++)
         if (i == master || splitPoint.slaves[i])
         {
index d0eb1b4fe2d6982ed96ed0a8f778591c945b7d38..3cc526ce5c127e3be85299e20775d4a42b9870f6 100644 (file)
@@ -60,7 +60,7 @@ struct SplitPoint {
 
   // Const pointers to shared data
   MovePicker* mp;
-  SearchStack* parentSstack;
+  SearchStack* ss;
 
   // Shared data
   Lock lock;