// Unmap and destroy
_page_allocator->unmap_page(page);
_page_allocator->destroy_page(page);
// Send event
event.commit(unmapped);
}
void ZUnmapper::unmap_and_destroy_page(ZPage* page) { // Asynchronous unmap and destroy is not supported with ZVerifyViews if (ZVerifyViews) { // Immediately unmap and destroy
do_unmap_and_destroy_page(page);
} else { // Enqueue for asynchronous unmap and destroy
ZLocker<ZConditionLock> locker(&_lock);
_queue.insert_last(page);
_lock.notify_all();
}
}
void ZUnmapper::run_service() { for (;;) {
ZPage* const page = dequeue(); if (page == NULL) { // Stop return;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.