2021-03-31 | Paul Boddie | raw annotate files changeset graph | Incorporated the paging abstraction in opener abstractions, introducing critical sections around the retrieval and disposal of page mappers and accessors, also discarding page mappers and accessors when disposal occurs. |
1 #pragma once 2 3 #include "host_file_opener.h" 4 5 6 7 /* Support for providing access to files. */ 8 9 class BlockFileOpener : public HostFileOpener 10 { 11 protected: 12 /* Configurable methods. */ 13 14 virtual Accessor *make_accessor(fileid_t fileid); 15 16 public: 17 explicit BlockFileOpener(Pages *pages) 18 : HostFileOpener(pages) 19 { 20 } 21 }; 22 23 // vim: tabstop=4 expandtab shiftwidth=4