mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0023988: Force use of reentrant mode
Reentrant mode switch is eliminated
This commit is contained in:
@@ -208,8 +208,6 @@ static Standard_Integer incrementalmesh(Draw_Interpretor& di, Standard_Integer n
|
||||
di << "Incremental Mesh, multi-threading "
|
||||
<< (isInParallel ? "ON\n" : "OFF\n");
|
||||
|
||||
Standard::SetReentrant(isInParallel);
|
||||
|
||||
BRepMesh_IncrementalMesh MESH(aShape, aDeflection, Standard_False, 0.5, isInParallel);
|
||||
Standard_Integer statusFlags = MESH.GetStatusFlags();
|
||||
|
||||
|
@@ -529,8 +529,6 @@ static int mpparallel (Draw_Interpretor& di, Standard_Integer argc, const char**
|
||||
{
|
||||
Standard_Boolean isParallelOn = Draw::Atoi (argv[1]) == 1;
|
||||
BRepMesh_IncrementalMesh::SetParallelDefault (isParallelOn);
|
||||
if (isParallelOn)
|
||||
Standard::SetReentrant(Standard_True);
|
||||
}
|
||||
std::cout << "Incremental Mesh, multi-threading "
|
||||
<< (BRepMesh_IncrementalMesh::IsParallelDefault() ? "ON\n" : "OFF\n");
|
||||
|
Reference in New Issue
Block a user