1.1 --- a/page_queue_partitioned.cc Sun Mar 28 22:38:45 2021 +0200
1.2 +++ b/page_queue_partitioned.cc Sun Mar 28 22:41:12 2021 +0200
1.3 @@ -1,5 +1,15 @@
1.4 #include "page_queue_partitioned.h"
1.5
1.6 +
1.7 +
1.8 +/* Discard all queued flexpages. */
1.9 +
1.10 +void PageQueuePartitioned::close(Memory *memory)
1.11 +{
1.12 + discard(_available, memory);
1.13 + discard(_issued, memory);
1.14 +}
1.15 +
1.16 /* Keep waiting for a potential queue non-empty condition.
1.17 Then, attempt to pop an entry from the queue. */
1.18
1.19 @@ -96,8 +106,7 @@
1.20
1.21 bool PageQueuePartitioned::remove(PageOwner *owner, Flexpage *flexpage)
1.22 {
1.23 - (void) owner; (void) flexpage;
1.24 - return true;
1.25 + return PageQueue::remove(_issued, _positions, owner, flexpage);
1.26 }
1.27
1.28 // vim: tabstop=4 expandtab shiftwidth=4