2021-03-28 | Paul Boddie | raw annotate files changeset graph | Fixed the remove operation in the partitioned queue: flexpages will be added again when queued and their removal is necessary to prevent duplication. Added support for closing page queues and releasing their pages. |
1 #pragma once 2 3 #include "region.h" 4 5 6 7 /* A memory pool interface. */ 8 9 class Memory 10 { 11 public: 12 virtual ~Memory() 13 { 14 } 15 16 virtual Region *region() = 0; 17 18 virtual offset_t region_size() = 0; 19 20 virtual void release(Region *region) = 0; 21 }; 22 23 // vim: tabstop=4 expandtab shiftwidth=4