1.1 --- a/page_queue_partitioned.h Sun Mar 28 22:41:12 2021 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,35 +0,0 @@
1.4 -#pragma once
1.5 -
1.6 -#include <condition_variable>
1.7 -#include <mutex>
1.8 -
1.9 -#include "page_queue.h"
1.10 -
1.11 -
1.12 -
1.13 -/* Queues of issued and available pages. */
1.14 -
1.15 -class PageQueuePartitioned : public PageQueue
1.16 -{
1.17 -protected:
1.18 - Queue _issued, _available;
1.19 - Positions _positions;
1.20 -
1.21 - std::mutex _lock;
1.22 - std::condition_variable _counter;
1.23 -
1.24 - virtual bool _pop(QueueEntry *entry);
1.25 -
1.26 -public:
1.27 - virtual void close(Memory *memory);
1.28 -
1.29 - virtual void pop(PageOwner **owner, Flexpage **flexpage);
1.30 -
1.31 - virtual void push(PageOwner *owner, Flexpage *flexpage);
1.32 -
1.33 - virtual void push_front(PageOwner *owner, Flexpage *flexpage);
1.34 -
1.35 - virtual bool remove(PageOwner *owner, Flexpage *flexpage);
1.36 -};
1.37 -
1.38 -// vim: tabstop=4 expandtab shiftwidth=4