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

0022550: Fixing data races

This commit is contained in:
KGV
2012-01-27 14:12:59 +00:00
committed by bugmaster
parent 46921bd5c8
commit 41194117bf
62 changed files with 1170 additions and 1274 deletions

View File

@@ -82,8 +82,11 @@ IntImp_ConstIsoparametric IntImp_Int2S::
math_FunctionSetRoot& Rsnld,
const IntImp_ConstIsoparametric ChoixIso )
{
static math_Vector BornInf(1,3),BornSup(1,3),Tolerance(1,3),UVap(1,3);
static TColStd_Array1OfReal Uvres(1,4);
Standard_Real BornInfBuf[3], BornSupBuf[3], ToleranceBuf[3], UVapBuf[3];
Standard_Real UvresBuf[4];
math_Vector BornInf (BornInfBuf, 1, 3), BornSup (BornSupBuf, 1, 3), Tolerance (ToleranceBuf, 1, 3), UVap (UVapBuf, 1, 3);
TColStd_Array1OfReal Uvres (UvresBuf[0], 1, 4);
IntImp_ConstIsoparametric BestChoix;
myZerParFunc.ComputeParameters(ChoixIso,Param,UVap,
BornInf,BornSup,Tolerance);
@@ -120,7 +123,8 @@ IntImp_ConstIsoparametric IntImp_Int2S:: Perform(
gp_Vec DPUV[4];
gp_Pnt P1,P2;
Standard_Real Epsuv[4];
static TColStd_Array1OfReal Duv(1,4);
Standard_Real DuvBuf[4];
TColStd_Array1OfReal Duv (DuvBuf[0], 1, 4);
Standard_Real UVd[4],UVf[4];
IntImp_ConstIsoparametric ChoixIso[4];
IntImp_ConstIsoparametric BestChoix=ChoixRef[0];
@@ -230,6 +234,3 @@ IntImp_ConstIsoparametric IntImp_Int2S:: Perform(
}
return BestChoix;
}

View File

@@ -74,10 +74,8 @@ void IntImp_IntCS::Perform(const Standard_Real U,
const Standard_Real w0,
const Standard_Real w1) {
done = Standard_True;
static math_Vector UVap(1,3);
static math_Vector BornInf(1,3);
static math_Vector BornSup(1,3);
static math_Vector Tolerance(1,3);
Standard_Real BornInfBuf[3], BornSupBuf[3], ToleranceBuf[3], UVapBuf[3];
math_Vector BornInf (BornInfBuf, 1, 3), BornSup (BornSupBuf, 1, 3), Tolerance (ToleranceBuf, 1, 3), UVap (UVapBuf, 1, 3);
UVap(1) = U;
UVap(2) = V;
UVap(3) = W;