Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:25

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2009-2012. Distributed under the Boost
0004 // Software License, Version 1.0. (See accompanying file
0005 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // See http://www.boost.org/libs/interprocess for documentation.
0008 //
0009 //////////////////////////////////////////////////////////////////////////////
0010 
0011 #ifndef BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP
0012 #define BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP
0013 
0014 #ifndef BOOST_CONFIG_HPP
0015 #  include <boost/config.hpp>
0016 #endif
0017 #
0018 #if defined(BOOST_HAS_PRAGMA_ONCE)
0019 #pragma once
0020 #endif
0021 
0022 #include <boost/interprocess/detail/config_begin.hpp>
0023 #include <boost/interprocess/detail/workaround.hpp>
0024 
0025 #ifdef BOOST_INTERPROCESS_WINDOWS
0026    #include <boost/interprocess/detail/windows_intermodule_singleton.hpp>
0027 #else
0028    #include <boost/interprocess/detail/portable_intermodule_singleton.hpp>
0029 #endif
0030 
0031 namespace boost{
0032 namespace interprocess{
0033 namespace ipcdetail{
0034 
0035 //Now this class is a singleton, initializing the singleton in
0036 //the first get() function call if LazyInit is true. If false
0037 //then the singleton will be initialized when loading the module.
0038 template<typename C, bool LazyInit = true, bool Phoenix = false>
0039 class intermodule_singleton
0040    #ifdef BOOST_INTERPROCESS_WINDOWS
0041    : public windows_intermodule_singleton<C, LazyInit, Phoenix>
0042    #else
0043    : public portable_intermodule_singleton<C, LazyInit, Phoenix>
0044    #endif
0045 {};
0046 
0047 }  //namespace ipcdetail{
0048 }  //namespace interprocess{
0049 }  //namespace boost{
0050 
0051 #include <boost/interprocess/detail/config_end.hpp>
0052 
0053 #endif