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 #include "accessor.h" 2 3 Accessor::Accessor(fileid_t fileid, offset_t size) 4 : _size(size), fileid(fileid) 5 { 6 } 7 8 /* Return the size of the file. */ 9 10 offset_t Accessor::get_size() 11 { 12 return _size; 13 } 14 15 /* Perform any closing operation on the file. */ 16 17 void Accessor::close() 18 { 19 } 20 21 /* Perform any opening operation on the file. */ 22 23 void Accessor::open() 24 { 25 } 26 27 // vim: tabstop=4 expandtab shiftwidth=4