bool MemoryManagerV3::flushAll() { for (unsigned int i = 0; i < this->count(); ++i) { MemoryArea* area = this->getMemoryArea(i); MemoryCacheCtrl* ctrl = area->getCacheCtrl(); if (ctrl) { if (!ctrl->flush(0, area->getSize())) return false; ctrl->clear(0, area->getSize()); } } return true; }