{
algo = GetAlgo();
ASSERT(algo);
- if(!_father->IsParallel())
- ret = algo->CheckHypothesis((*_father), _subShape, hyp_status);
- else
- ret = true;
+ ret = algo->CheckHypothesis((*_father), _subShape, hyp_status);
if (!ret)
{
MESSAGE("***** verify compute state *****");
break;
}
TopoDS_Shape shape = _subShape;
- if(!_father->IsParallel())
- algo->SubMeshesToCompute().assign( 1, this );
+ _father->Lock();
+ algo->SubMeshesToCompute().assign( 1, this );
+ _father->Unlock();
// check submeshes needed
// In parallel there would be no submesh to check
if (_father->HasShapeToMesh() && !_father->IsParallel()) {
updateDependantsState( SUBMESH_COMPUTED );
}
// let algo clear its data gathered while algo->Compute()
- if(!_father->IsParallel())
- algo->CheckHypothesis((*_father), _subShape, hyp_status);
+ algo->CheckHypothesis((*_father), _subShape, hyp_status);
}
break;
case COMPUTE_CANCELED: // nothing to do