File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 27
27
#include < boost/thread/locks.hpp>
28
28
#include < boost/thread/shared_mutex.hpp>
29
29
30
- namespace mpclmi { namespace ipc {
30
+ namespace mpclmi :: ipc {
31
31
32
32
struct Shared {
33
33
typedef boost::interprocess::managed_shared_memory segment_t ;
@@ -49,8 +49,7 @@ struct Shared {
49
49
mem_ptr.reset () ;
50
50
segment_t::grow (path.c_str (), size) ;
51
51
mem_ptr.reset (open_segment (path)) ;
52
- return ;
53
- }
52
+ }
54
53
static std::string convert_base_dir ([[maybe_unused]] const std::string &base_dir) {
55
54
return " " ;
56
55
}
@@ -81,8 +80,7 @@ struct Mapped {
81
80
mem_ptr.reset () ;
82
81
segment_t::grow (path.c_str (), size) ;
83
82
mem_ptr.reset (open_segment (path)) ;
84
- return ;
85
- }
83
+ }
86
84
static std::string convert_base_dir (const std::string &base_dir) {
87
85
return base_dir + " /" ;
88
86
}
@@ -108,17 +106,16 @@ struct Heap {
108
106
template <typename MemPtr>
109
107
static void grow ( MemPtr &mem_ptr, [[maybe_unused]] const std::string &path, size_t size) {
110
108
mem_ptr->grow (size) ;
111
- return ;
112
- }
109
+ }
113
110
static std::string convert_base_dir ([[maybe_unused]] const std::string &base_dir) {
114
111
return " " ;
115
112
}
116
113
117
114
template <typename Function>
118
- static void attach ( Function && ) {}
115
+ static void attach ( Function && f) {
116
+ f () ;
117
+ }
119
118
};
120
119
121
- }}
120
+ }
122
121
#endif /* __IPC_MEMORY_TYPES_HPP__ */
123
-
124
-
You can’t perform that action at this time.
0 commit comments