2021-02-27 | Paul Boddie | raw annotate files changeset graph | Employ libipc synchronisation support for region manager operations. This seems to prevent the region manager from granting the same base address to different dataspaces occasionally (which is apparently not supposed to happen even in a multithreaded program). |
1 #pragma once 2 3 #include "accessor.h" 4 5 /* A file accessor, providing flexpages corresponding to file regions. */ 6 7 class TestFileAccessor : public Accessor 8 { 9 public: 10 explicit TestFileAccessor(fileid_t fileid, offset_t size=0); 11 12 /* Data transfer methods. */ 13 14 virtual void fill(Flexpage *flexpage); 15 16 virtual void flush(Flexpage *flexpage); 17 }; 18 19 // vim: tabstop=4 expandtab shiftwidth=4