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:
@@ -3,26 +3,12 @@
|
||||
// Author: Laurent BOURESCHE
|
||||
// <lbo@phylox>
|
||||
|
||||
static Standard_Integer maxbinom = -1;
|
||||
static Standard_Address binom;
|
||||
|
||||
inline TColStd_Array1OfReal& PLib::NoWeights()
|
||||
inline TColStd_Array1OfReal& PLib::NoWeights()
|
||||
{
|
||||
return (*((TColStd_Array1OfReal*) NULL ));
|
||||
}
|
||||
|
||||
inline TColStd_Array2OfReal& PLib::NoWeights2()
|
||||
inline TColStd_Array2OfReal& PLib::NoWeights2()
|
||||
{
|
||||
return (*((TColStd_Array2OfReal*) NULL ));
|
||||
}
|
||||
|
||||
inline Standard_Real PLib::Bin(const Standard_Integer N,
|
||||
const Standard_Integer P)
|
||||
{
|
||||
return (Standard_Real)((Standard_Integer**)binom)[N][P];
|
||||
}
|
||||
|
||||
inline void PLib::Binomial(const Standard_Integer N)
|
||||
{
|
||||
if (N > maxbinom) PLib::InternalBinomial(N,maxbinom,binom);
|
||||
}
|
||||
|
Reference in New Issue
Block a user