CMemoryPool Class Reference
Constructor & Destructor Documentation
CMemoryPool()
CMemoryPool | ( | ) | [protected, inline] |
Member Functions Documentation
AddCollector(MMemoryCollector *)
register a memory collector, memory manager doesn't own this collector
- Since
- 3.1
AddStopper(MOOMStopper *)
register a stopper, memory manager doesn't own this stopper.
- Since
- 3.1
Allocate(TUint)
allocate a memory buffer
- Since
- 3.1
Parameters
TUint aSize | bytes of memory to be allocated |
CollectMemory(TUint)
void | CollectMemory | ( | TUint | aSize = -1 | ) | |
collect free memory from memory collectors
- Since
- 3.1
Create()
create the allocator
- Since
- 3.1
DoAlloc(TUint)
TAny * | DoAlloc | ( | TUint | aSize | ) | [protected, pure virtual] |
allocate a buffer
- Since
- 3.1
Free(TAny *)
void | Free | ( | TAny * | aPtr | ) | [pure virtual] |
free the memory
- Since
- 3.1
Parameters
TAny * aPtr | pointer to the memory to be freed |
InitOOMDialog()
void | InitOOMDialog | ( | ) | [virtual] |
MemorySize(TAny *)
get the size of a memory buffer
- Since
- 3.1
Parameters
TAny * aPtr | pointer to the memory buffer |
NotifyAndStop()
void | NotifyAndStop | ( | ) | [protected] |
utility function, notify the user and stop ongoing operations
- Since
- 3.1
PostCheck()
TUint
| PostCheck | ( | ) | [pure virtual] |
An additional check after an operation is completed.
- Since
- 3.1
PreCheck(TUint, TUint, const TDesC8 &)
check if the memory manager is able to reserve enough memory for the coming operation.
- Since
- 3.1
Parameters
TUint aTotalSize | total amount of memory |
TUint aMaxBufSize | |
const TDesC8 & aChecker | the name of operation |
ReAllocate(TAny *, TUint)
realloc a memory buffer
- Since
- 3.1
Parameters
TAny * aPtr | |
TUint aSize | bytes of memory to be allocated |
RemoveCollector(MMemoryCollector *)
unregister a memory collector
- Since
- 3.1
RemoveStopper(MOOMStopper *)
unregister a stopper
- Since
- 3.1
ResetOOMDialog()
void | ResetOOMDialog | ( | ) | [virtual] |
RestoreCollectors(TOOMPriority)
restore the states of memory collectors
- Since
- 3.1
RestoreRescueBuffer()
void | RestoreRescueBuffer | ( | ) | [pure virtual] |
SetNotifier(MOOMNotifier *)
set the OOM notifier, memory manager doesn't own this notifier
- Since
- 3.1
SetRescueBufferSize(TInt)
void | SetRescueBufferSize | ( | TInt | aSize | ) | [pure virtual] |
set the size of rescue buffer
- Since
- 3.1
SetStatus(TOOMCheckResult)
SetStopping(TBool)
void | SetStopping | ( | TBool | aStopping | ) | |
toggle the stopping status of memory manager
- Since
- 3.1
Status()
get status of memory manager
- Since
- 3.1
Stoppers()
get the array of stoppers, used by stopscheduler
- Since
- 3.1
TriggerOOM(TOOMType)
Trigger an OOM event, this function is only for debugging purpose
- Since
- 3.1
Parameters
TOOMType aType | defines where memory allocation fails |
Member Data Documentation
RPointerArray< MMemoryCollector > iCollectors
TBool
iIsCollecting
TBool
| iIsCollecting | [protected] |
TBool
iIsStopping
TBool
| iIsStopping | [protected] |
TUint
iMemStatus
TUint
| iMemStatus | [protected] |
TInt
iNestedChecks
TInt
| iNestedChecks | [protected] |
TUint
iOOMType
TUint
| iOOMType | [protected] |
CStopScheduler * iStopScheduler
RPointerArray< MOOMStopper > iStoppers
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.