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>
ss->bestMove = move;
if (SpNode)
ss->bestMove = move;
if (SpNode)
- sp->parentSstack->bestMove = move;
+ sp->ss->bestMove = move;
SplitPoint* tsp = threads[threadID].splitPoint;
Position pos(*tsp->pos, threadID);
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)
(ss+1)->sp = tsp;
if (tsp->pvNode)
splitPoint.moveCount = moveCount;
splitPoint.pos = &pos;
splitPoint.nodes = 0;
splitPoint.moveCount = moveCount;
splitPoint.pos = &pos;
splitPoint.nodes = 0;
- splitPoint.parentSstack = ss;
for (i = 0; i < activeThreads; i++)
splitPoint.slaves[i] = 0;
for (i = 0; i < activeThreads; i++)
splitPoint.slaves[i] = 0;
lock_release(&mpLock);
// Tell the threads that they have work to do. This will make them leave
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.
for (i = 0; i < activeThreads; i++)
if (i == master || splitPoint.slaves[i])
{
for (i = 0; i < activeThreads; i++)
if (i == master || splitPoint.slaves[i])
{
// Const pointers to shared data
MovePicker* mp;
// Const pointers to shared data
MovePicker* mp;
- SearchStack* parentSstack;
// Shared data
Lock lock;
// Shared data
Lock lock;