Open CASCADE Technology
6.5.4
|
Implementation of OCC memory manager which uses Intel TBB scalable allocator. More...
#include <Standard_MMgrTBBalloc.hxx>
Public Member Functions | |
Standard_MMgrTBBalloc (const Standard_Boolean aClear=Standard_False) | |
Constructor; if aClear is True, the memory will be nullified upon allocation. | |
virtual Standard_Address | Allocate (const Standard_Size aSize) |
Allocate aSize bytes. | |
virtual Standard_Address | Reallocate (Standard_Address &aPtr, const Standard_Size aSize) |
Reallocate aPtr to the size aSize. The pointer aPtr is nullified; new pointer is returned. | |
virtual void | Free (Standard_Address &) |
Free allocated memory. The pointer is nullified. | |
Protected Attributes | |
Standard_Boolean | myClear |
On configurations where TBB is not available standard RTL functions malloc() / free() are used.
virtual Standard_Address Standard_MMgrTBBalloc::Allocate | ( | const Standard_Size | aSize | ) | [virtual] |
Implements Standard_MMgrRoot.
virtual void Standard_MMgrTBBalloc::Free | ( | Standard_Address & | ) | [virtual] |
Implements Standard_MMgrRoot.
virtual Standard_Address Standard_MMgrTBBalloc::Reallocate | ( | Standard_Address & | aPtr, |
const Standard_Size | aSize | ||
) | [virtual] |
Implements Standard_MMgrRoot.
Standard_Boolean Standard_MMgrTBBalloc::myClear [protected] |