Check for a cutoff occurred also high in
the tree and not only at current split
point.
This avoids some more wasted reparenting.
No functional chnage.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
// where we are available as a possible slave.
if ( this->is_available_to(th)
&& spCnt > 0
- && !latest->cutoff
+ && !th->cutoff_occurred()
&& latest->slavesMask == latest->allSlavesMask
&& more_than_one(latest->allSlavesMask))
{
// of a race storm here !
if ( this->is_available_to(th)
&& spCnt == th->splitPointsCnt
- && !latest->cutoff
+ && !th->cutoff_occurred()
&& latest->slavesMask == latest->allSlavesMask
&& more_than_one(latest->allSlavesMask))
{