comparison DEPENDENCIES/generic/include/boost/interprocess/detail/intermodule_singleton.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
9 ////////////////////////////////////////////////////////////////////////////// 9 //////////////////////////////////////////////////////////////////////////////
10 10
11 #ifndef BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP 11 #ifndef BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP
12 #define BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP 12 #define BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP
13 13
14 #if defined(_MSC_VER)&&(_MSC_VER>=1200) 14 #ifndef BOOST_CONFIG_HPP
15 # include <boost/config.hpp>
16 #endif
17 #
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
15 #pragma once 19 #pragma once
16 #endif 20 #endif
17 21
18 #include <boost/interprocess/detail/config_begin.hpp> 22 #include <boost/interprocess/detail/config_begin.hpp>
19 #include <boost/interprocess/detail/workaround.hpp> 23 #include <boost/interprocess/detail/workaround.hpp>
20 24
21 #ifdef BOOST_INTERPROCESS_WINDOWS 25 #ifdef BOOST_INTERPROCESS_WINDOWS
22 #include <boost/interprocess/detail/windows_intermodule_singleton.hpp> 26 #include <boost/interprocess/detail/windows_intermodule_singleton.hpp>
27 #else
28 #include <boost/interprocess/detail/portable_intermodule_singleton.hpp>
23 #endif 29 #endif
24 #include <boost/interprocess/detail/portable_intermodule_singleton.hpp>
25 30
26 namespace boost{ 31 namespace boost{
27 namespace interprocess{ 32 namespace interprocess{
28 namespace ipcdetail{ 33 namespace ipcdetail{
29 34
30 //Now this class is a singleton, initializing the singleton in 35 //Now this class is a singleton, initializing the singleton in
31 //the first get() function call if LazyInit is false. If true 36 //the first get() function call if LazyInit is false. If true
32 //then the singleton will be initialized when loading the module. 37 //then the singleton will be initialized when loading the module.
33 template<typename C, bool LazyInit = true, bool Phoenix = true> 38 template<typename C, bool LazyInit = true, bool Phoenix = false>
34 class intermodule_singleton 39 class intermodule_singleton
35 #ifdef BOOST_INTERPROCESS_WINDOWS 40 #ifdef BOOST_INTERPROCESS_WINDOWS
36 : public windows_intermodule_singleton<C, LazyInit, Phoenix> 41 : public windows_intermodule_singleton<C, LazyInit, Phoenix>
37 #else 42 #else
38 : public portable_intermodule_singleton<C, LazyInit, Phoenix> 43 : public portable_intermodule_singleton<C, LazyInit, Phoenix>