Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-30 08:04:54

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 ">#
0019 #if defined(BOOST_HAS_PRAGMA_ONCE)
0020 #pragma once
0021 #endif
0022 
0023 #include <boost/interprocess/detail/config_begin.hpp>
0024 #include <boost/interprocess/detail/workaround.hpp>
0025 
0026 #ifdef BOOST_INTERPROCESS_WINDOWS
0027    #include <boost/interprocess/detail/windows_intermodule_singleton.hpp>
0028 #else
0029    #include <boost/interprocess/detail/portable_intermodule_singleton.hpp>
0030 #endif
0031 
0032 namespace boost{
0033 namespace interprocess{
0034 namespace ipcdetail{
0035 
0036 //Now this class is a singleton, initializing the singleton in
0037 //the first get() function call if LazyInit is true. If false
0038 //then the singleton will be initialized when loading the module.
0039 template<typename C, bool LazyInit = true, bool Phoenix = false>
0040 class intermodule_singleton
0041    #ifdef BOOST_INTERPROCESS_WINDOWS
0042    : public windows_intermodule_singleton<C, LazyInit, Phoenix>
0043    #else
0044    : public portable_intermodule_singleton<C, LazyInit, Phoenix>
0045    #endif
0046 {};
0047 
0048 }  //namespace ipcdetail{
0049 }  //namespace interprocess{
0050 }  //namespace boost{
0051 
0052 #include <boost/interprocess/detail/config_end.hpp>
0053 
0054 #endif