virtual void Visit(MemoryHeap* parentHeap, MemoryHeap * childHeap) = 0;
Visit is called for each child heap within the parent heap. The child heap is guaranteed to stay alive during the call as long as parent is alive too. Implementation of Visit is not allowed to allocate memory from childHeap due to risk of a deadlock (it can allocate from parent or other heaps).
Parameters |
Description |
MemoryHeap* parentHeap |
Parent heap. |
MemoryHeap * childHeap |
Child heap which is called. |