X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=5c013c6a0b72e06830d2a7389706f45d73b9a43a;hp=02cb45629dff48b8048890911139efe0eae5d46a;hb=dccaa145d2b57999aa3e368c7c9203731b4e9685;hpb=6656ed8904ccf0e20321f9929f2d13fbb7b9223d diff --git a/src/thread.cpp b/src/thread.cpp index 02cb4562..5c013c6a 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -154,7 +154,6 @@ void Thread::split(Position& pos, Stack* ss, Value alpha, Value beta, Value* bes sp.masterThread = this; sp.parentSplitPoint = activeSplitPoint; - sp.spLevel = activeSplitPoint ? activeSplitPoint->spLevel + 1 : 0; sp.slavesMask = 0, sp.slavesMask.set(idx); sp.slavesCount = 1; sp.depth = depth; @@ -184,7 +183,7 @@ void Thread::split(Position& pos, Stack* ss, Value alpha, Value beta, Value* bes Thread* slave; - while ( sp.slavesCount < MAX_SLAVES_PER_SPLITPOINT + while ( sp.slavesCount < MAX_SLAVES_PER_SPLITPOINT && (slave = Threads.available_slave(this)) != NULL) { sp.slavesMask.set(slave->idx);