CMSDK  2.0.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
cmlabs::MemoryManagerX Class Reference

Public Member Functions

bool connect (uint16 sysID)
 
bool create (uint16 sysID, uint32 staticPageTableSize=100, uint32 slotCount=360, uint32 slotDuration=60000000, uint32 pagesPerSlot=10, bool force=false)
 
bool insertMemoryBlock (const char *data, uint32 size, uint64 eol, uint64 &id)
 
bool overwriteMemoryBlock (uint64 id, const char *data, uint32 size, uint64 eol)
 
char * getAndLockMemoryBlock (uint64 id, uint32 &size, uint64 &eol)
 
char * getLockedMemoryBlock (MemoryPage *page, uint64 id, uint32 &size, uint64 &eol)
 
bool unlockMemoryBlock (uint64 id)
 
char * getCopyMemoryBlock (uint64 id, uint32 &size, uint64 &eol)
 
char * getSystemBlock (uint32 pageID, uint32 &size)
 
char * getAndLockSystemBlock (uint32 pageID, uint32 &size)
 
char * getLockedSystemBlock (uint32 pageID, uint32 &size)
 
char * getLockedSystemBlock (MemoryPage *page, uint32 &size)
 
bool unlockSystemBlock (uint32 pageID)
 
char * createAndLockNewSystemPage (uint32 size, uint32 &id)
 
char * resizeSystemPage (uint32 pageID, uint32 size)
 

Static Public Member Functions

static char * GetAndLockSystemBlock (uint32 pageID, uint32 &size)
 
static bool UnlockSystemBlock (uint32 pageID)
 
static char * CreateAndLockNewSystemPage (uint32 size, uint32 &id)
 
static char * ResizeSystemPage (uint32 pageID, uint32 newSize)
 
static bool GetMemoryUsage (uint32 &total, uint32 &usage, uint32 &sysTotal, uint32 &sysUsage, uint32 &staticTotal, uint32 &staticUsage, uint32 &dynamicTotal, uint32 &dynamicUsage)
 
static bool DestroySystemPage (uint32 pageID)
 
static bool InsertMemoryBlock (const char *data, uint32 size, uint64 eol, uint64 &id)
 
static bool OverwriteMemoryBlock (uint64 id, const char *data, uint32 size, uint64 eol)
 
static char * GetAndLockMemoryBlock (uint64 id, uint32 &size, uint64 &eol)
 
static bool UnlockMemoryBlock (uint64 id)
 
static char * GetCopyMemoryBlock (uint64 id, uint32 &size, uint64 &eol)
 
static bool UnitTest ()
 

Static Public Attributes

static MemoryManagerXSingleton
 

Friends

THREAD_RET THREAD_FUNCTION_CALL MemoryManagement (THREAD_ARG arg)
 

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