1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0023952: Improving thread-safety of intersections, approximations and other modeling algorithms

Modified QAcommands OCC23952sweep and OCC23952intersect to prevent exception in appropriate test cases
This commit is contained in:
apn
2013-06-05 10:34:49 +04:00
parent fee4fa0f01
commit 85c44a05a0
3 changed files with 42 additions and 0 deletions

View File

@@ -435,6 +435,7 @@ static Standard_Integer OCC23952sweep (Draw_Interpretor& di, Standard_Integer ar
OSD_Thread aThread1(convert);
aThread1.Run(&aStorage);
GeomConvertTest(di,aStorage.nbupoles,aStorage.filename);
cout << "result of thread: " << aThread1.Wait() << endl;
return 0;
}
@@ -483,6 +484,7 @@ static Standard_Integer OCC23952intersect (Draw_Interpretor& di, Standard_Intege
OSD_Thread aThread1(convert_inter);
aThread1.Run(&aStorage);
GeomIntSSTest(di,aStorage.nbsol,aStorage.filename1,aStorage.filename2);
cout << "result of thread: " << aThread1.Wait() << endl;
return 0;
}