mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023592: Enabling TBB allocator by default for OCC built with -DHAVE_TBB
Implementation updated based on discussion with OCC team
This commit is contained in:
parent
1db4f07b79
commit
a0d8a9fc54
@ -33,6 +33,10 @@
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#ifndef OCCT_MMGT_OPT_DEFAULT
|
||||
#define OCCT_MMGT_OPT_DEFAULT 0
|
||||
#endif
|
||||
|
||||
// Global reentrant flag
|
||||
static Standard_Boolean Standard_IsReentrant = Standard_True;
|
||||
|
||||
@ -60,7 +64,8 @@ Standard_MMgrFactory::Standard_MMgrFactory()
|
||||
: myFMMgr (NULL)
|
||||
{
|
||||
char* aVar;
|
||||
Standard_Integer anAllocId = (aVar = getenv ("MMGT_OPT" )) ? atoi (aVar) : 0;
|
||||
Standard_Integer anAllocId = (aVar = getenv ("MMGT_OPT" )) ? atoi (aVar) :
|
||||
(OCCT_MMGT_OPT_DEFAULT);
|
||||
Standard_Boolean toClear = (aVar = getenv ("MMGT_CLEAR" )) ? (atoi (aVar) != 0) : Standard_True;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user