/usr/include/boost/interprocess/detail
NameSizeModeActions
atomic.hpp220360644editdlrm
cast_tags.hpp9590644editdlrm
config_begin.hpp32100644editdlrm
config_end.hpp5640644editdlrm
config_external_begin.hpp7140644editdlrm
config_external_end.hpp5290644editdlrm
file_locking_helpers.hpp70290644editdlrm
file_wrapper.hpp64070644editdlrm
intermodule_singleton.hpp16340644editdlrm
intermodule_singleton_common.hpp200680644editdlrm
interprocess_tester.hpp10280644editdlrm
intersegment_ptr.hpp343010644editdlrm
in_place_interface.hpp22840644editdlrm
managed_global_memory.hpp40720644editdlrm
managed_memory_impl.hpp300590644editdlrm
managed_multi_shared_memory.hpp147440644editdlrm
managed_open_or_create_impl.hpp154210644editdlrm
math_functions.hpp25740644editdlrm
min_max.hpp11470644editdlrm
move.hpp8790644editdlrm
mpl.hpp22590644editdlrm
named_proxy.hpp99500644editdlrm
nothrow.hpp11990644editdlrm
os_file_functions.hpp224340644editdlrm
os_thread_functions.hpp174400644editdlrm
pointer_type.hpp18900644editdlrm
portable_intermodule_singleton.hpp116700644editdlrm
posix_time_types_wrk.hpp14590644editdlrm
ptime_wrk.hpp11950644editdlrm
robust_emulation.hpp130200644editdlrm
segment_manager_helper.hpp153250644editdlrm
shared_dir_helpers.hpp69080644editdlrm
simple_swap.hpp8590644editdlrm
std_fwd.hpp17080644editdlrm
transform_iterator.hpp12830644editdlrm
type_traits.hpp29010644editdlrm
utilities.hpp59170644editdlrm
variadic_templates_tools.hpp11150644editdlrm
win32_api.hpp614660644editdlrm
windows_intermodule_singleton.hpp107450644editdlrm
workaround.hpp91350644editdlrm
xsi_shared_memory_file_wrapper.hpp31440644editdlrm
Edit: /usr/include/boost/interprocess/detail/managed_global_memory.hpp (4072B)
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2009-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/interprocess for documentation. // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTERPROCESS_BASIC_GLOBAL_MEMORY_HPP #define BOOST_INTERPROCESS_BASIC_GLOBAL_MEMORY_HPP #ifndef BOOST_CONFIG_HPP # include #endif # #if defined(BOOST_HAS_PRAGMA_ONCE) #pragma once #endif #include #include #include #include #include #include #include #include #include #include #include namespace boost{ namespace interprocess{ namespace ipcdetail{ struct intermodule_singleton_mutex_family { typedef boost::interprocess::ipcdetail::spin_mutex mutex_type; typedef boost::interprocess::ipcdetail::spin_recursive_mutex recursive_mutex_type; }; struct intermodule_types { //We must use offset_ptr since a loaded DLL can map the singleton holder shared memory //at a different address than other DLLs or the main executable typedef rbtree_best_fit > mem_algo; template struct open_or_create { typedef managed_open_or_create_impl type; }; }; //we must implement our own managed shared memory to avoid circular dependencies template class basic_managed_global_memory : public basic_managed_memory_impl < char , intermodule_types::mem_algo , iset_index , intermodule_types::open_or_create::type::ManagedOpenOrCreateUserOffset > , private intermodule_types::open_or_create::type { #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) typedef typename intermodule_types::template open_or_create::type base2_t; typedef basic_managed_memory_impl < char , intermodule_types::mem_algo , iset_index , base2_t::ManagedOpenOrCreateUserOffset > base_t; typedef create_open_func create_open_func_t; basic_managed_global_memory *get_this_pointer() { return this; } public: typedef typename base_t::size_type size_type; private: typedef typename base_t::char_ptr_holder_t char_ptr_holder_t; BOOST_MOVABLE_BUT_NOT_COPYABLE(basic_managed_global_memory) #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED public: //functions basic_managed_global_memory (open_or_create_t open_or_create, const char *name, size_type size, const void *addr = 0, const permissions& perm = permissions()) : base_t() , base2_t(open_or_create, name, size, read_write, addr, create_open_func_t(get_this_pointer(), DoOpenOrCreate), perm) {} basic_managed_global_memory (open_only_t open_only, const char* name, const void *addr = 0) : base_t() , base2_t(open_only, name, read_write, addr, create_open_func_t(get_this_pointer(), DoOpen)) {} }; } //namespace ipcdetail{ } //namespace interprocess{ } //namespace boost{ #include #endif //#ifndef BOOST_INTERPROCESS_BASIC_GLOBAL_MEMORY_HPP