Open CASCADE Technology 6.6.0
|
#include <Standard.hxx>
Static Public Member Functions | |
static Standard_Address | Allocate (const Standard_Size aSize) |
Allocates memory blocks aSize - bytes to allocate | |
static void | Free (Standard_Address &aStorage) |
Deallocates memory blocks aStorage - previously allocated memory block to be freed | |
static Standard_Address | Reallocate (Standard_Address &aStorage, const Standard_Size aNewSize) |
Reallocates memory blocks aStorage - previously allocated memory block aNewSize - new size in bytes | |
static Standard_Integer | Purge () |
Deallocates the storage retained on the free list and clears the list. Returns non-zero if some memory has been actually freed. | |
static Standard_Boolean | IsReentrant () |
Returns boolean flag indicating whether OCCT is operating in reentrant mode. This flag affects OCCT memory manager, exception and signal handling, operations with handles etc., making them thread-safe. By default, this flag is set to False, in order to avoid performance reduction due to locking. In multithreaded applications this flag must be set to True, either by calling method SetReentrant(), or by defining environment variable MMGT_REENTRANT. | |
static void | SetReentrant (const Standard_Boolean isReentrant) |
Sets boolean flag indicating whether OCCT is operating in reentrant mode. See method IsReentrant() for more information. Note: This method may be called only when no any other thread using OCCT exists |
static Standard_Address Standard::Allocate | ( | const Standard_Size | aSize | ) | [static] |
static void Standard::Free | ( | Standard_Address & | aStorage | ) | [static] |
static Standard_Boolean Standard::IsReentrant | ( | ) | [static] |
static Standard_Integer Standard::Purge | ( | ) | [static] |
static Standard_Address Standard::Reallocate | ( | Standard_Address & | aStorage, |
const Standard_Size | aNewSize | ||
) | [static] |
static void Standard::SetReentrant | ( | const Standard_Boolean | isReentrant | ) | [static] |