Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions
Standard Class Reference

#include <Standard.hxx>

Static Public Member Functions

static DEFINE_STANDARD_ALLOC
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


Member Function Documentation

static void Standard::Free ( Standard_Address aStorage) [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]

The documentation for this class was generated from the following file: