diff --git a/include/fc/interprocess/file_mapping.hpp b/include/fc/interprocess/file_mapping.hpp index 0610887..18f9e01 100644 --- a/include/fc/interprocess/file_mapping.hpp +++ b/include/fc/interprocess/file_mapping.hpp @@ -28,6 +28,7 @@ namespace fc { mapped_region( const file_mapping& fm, mode_t m, size_t start, size_t size ); mapped_region( const file_mapping& fm, mode_t m ); ~mapped_region(); + void flush(); void* get_address()const; size_t get_size()const; private: diff --git a/src/file_mapping.cpp b/src/file_mapping.cpp index c55710d..0d68fb8 100644 --- a/src/file_mapping.cpp +++ b/src/file_mapping.cpp @@ -16,5 +16,6 @@ namespace fc { :my( *fm.my, m == read_only ? boost::interprocess::read_only : boost::interprocess::read_write) { } mapped_region::~mapped_region(){} void* mapped_region::get_address()const { return my->get_address(); } + void mapped_region::flush(){ my->flush(); } size_t mapped_region::get_size()const { return my->get_size(); } }