#include <mw/MemoryManager.h>
Link against: memman.lib
class MemoryManager |
Public Member Functions | |
---|---|
IMPORT_C void | AddCollector(MMemoryCollector *) |
IMPORT_C void | AddStopper(MOOMStopper *) |
IMPORT_C void | CloseFastAllocator(RAllocator *) |
IMPORT_C void | CreateFastAllocator() |
IMPORT_C void | FreeRam() |
IMPORT_C void | InitFastAllocator() |
IMPORT_C void | InitOOMDialog() |
IMPORT_C TUint | MemorySize(TAny *) |
IMPORT_C TUint | PostCheck() |
IMPORT_C TBool | PreCheck(TUint, TUint, const TDesC8 &) |
IMPORT_C void | PrepareForExit() |
IMPORT_C void | RemoveCollector(MMemoryCollector *) |
IMPORT_C void | RemoveStopper(MOOMStopper *) |
IMPORT_C void | ResetOOMDialogDisplayed() |
IMPORT_C void | RestoreCollectors() |
IMPORT_C void | SetNotifier(MOOMNotifier *) |
IMPORT_C void | SetRescueBufferSize(TInt) |
IMPORT_C void | SetStatus(TOOMCheckResult) |
IMPORT_C TUint | Status() |
IMPORT_C RAllocator * | SwitchToFastAllocator() |
IMPORT_C void | AddCollector | ( | MMemoryCollector * | aCollector | ) | [static] |
Parameters | |
---|---|
aCollector | the collector to be registered |
IMPORT_C void | AddStopper | ( | MOOMStopper * | aStopper | ) | [static] |
Parameters | |
---|---|
aStopper | the stopper to be registered |
IMPORT_C void | CloseFastAllocator | ( | RAllocator * | aDefaultAllocator | ) | [static] |
IMPORT_C void | CreateFastAllocator | ( | ) | [static] |
Create fast allocator and switch as default heap. Special case if fast allocator has to be created from SetupThreadHeap().
IMPORT_C void | FreeRam | ( | ) | [static] |
IMPORT_C void | InitFastAllocator | ( | ) | [static] |
Initialize MemoryManager library. Special case if CreateFastAllocator is called from SetupThreadHeap().
IMPORT_C void | InitOOMDialog | ( | ) | [static] |
IMPORT_C TUint | PostCheck | ( | ) | [static] |
IMPORT_C TBool | PreCheck | ( | TUint | aTotalSize, |
TUint | aMaxBufSize, | |||
const TDesC8 & | aChecker = KNullDesC8 | |||
) | [static] |
Parameters | |
---|---|
aTotalSize | total amount of memory |
aChecker | the name of operation |
IMPORT_C void | PrepareForExit | ( | ) | [static] |
IMPORT_C void | RemoveCollector | ( | MMemoryCollector * | aCollector | ) | [static] |
Parameters | |
---|---|
aCollector | the collector to be unregistered |
IMPORT_C void | RemoveStopper | ( | MOOMStopper * | aStopper | ) | [static] |
Parameters | |
---|---|
aStopper | the stopper to be unregistered |
IMPORT_C void | ResetOOMDialogDisplayed | ( | ) | [static] |
IMPORT_C void | RestoreCollectors | ( | ) | [static] |
IMPORT_C void | SetNotifier | ( | MOOMNotifier * | aNotifier | ) | [static] |
Parameters | |
---|---|
aNotifier | the notifier |
IMPORT_C void | SetRescueBufferSize | ( | TInt | aSize | ) | [static] |
IMPORT_C void | SetStatus | ( | TOOMCheckResult | aType = ENoOOM | ) | [static] |
Parameters | |
---|---|
aType | defines where memory allocation fails |
IMPORT_C TUint | Status | ( | ) | [static] |
IMPORT_C RAllocator * | SwitchToFastAllocator | ( | ) | [static] |