1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

OCC22579 Improving thread-safety of GeomFill

This commit is contained in:
RLN and KGV
2011-07-14 13:02:13 +00:00
committed by bugmaster
parent 3b5410151b
commit f69df44281
5 changed files with 26 additions and 49 deletions

View File

@@ -58,18 +58,10 @@
#include <BRepAlgoAPI_Fuse.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <OSD_Chronometer.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>
//XX
// CHRONOMETER
//
#include <Standard_Static.hxx>
#include <OSD_Chronometer.hxx>
Standard_STATIC(OSD_Chronometer, S_Chrono);
static OSD_Chronometer DRAW_BOP_CHRONO;
static void StartChrono();
static void StopChrono(Draw_Interpretor&);
Standard_Integer btimesum (Draw_Interpretor& , Standard_Integer n, const char** a);
@@ -752,8 +744,8 @@ void StartChrono()
char *xr=getenv ("BOPCHRONO");
if (xr!=NULL){
if (!strcmp (xr, "yes")){
S_Chrono().Reset();
S_Chrono().Start();
DRAW_BOP_CHRONO.Reset();
DRAW_BOP_CHRONO.Start();
}
}
}
@@ -768,8 +760,8 @@ void StopChrono(Draw_Interpretor& di)
if (xr!=NULL){
if (!strcmp (xr, "yes")) {
Standard_Real Chrono;
S_Chrono().Stop();
S_Chrono().Show(Chrono);
DRAW_BOP_CHRONO.Stop();
DRAW_BOP_CHRONO.Show(Chrono);
//
char *aFileName=getenv("BOPCHRONOFILE");
if (aFileName!=NULL){

View File

@@ -55,7 +55,6 @@
#include <IntTools_Context.hxx>
#include <IntTools_FClass2d.hxx>
#include <gp_Pnt2d.hxx>
#include <Standard_Static.hxx>
#include <OSD_Chronometer.hxx>
#include <BRepTools.hxx>