Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-29 08:05:53

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2007-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_DETAIL_NODE_TOOLS_HPP
0012 #define BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_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 #include <boost/intrusive/slist.hpp>
0027 
0028 namespace boost {
0029 namespace interprocess {
0030 namespace ipcdetail {
0031 
0032 
0033 template<class VoidPointer>
0034 struct node_slist
0035 {
0036    //This hook will be used to chain the individual nodes
0037     typedef typename bi::make_slist_base_hook
0038       <bi::void_pointer<VoidPointer>, bi::link_mode<bi::normal_link> >::type slist_hook_t;
0039 
0040    //A node object will hold node_t when it's not allocated
0041    struct node_t
0042       :  public slist_hook_t
0043    {};
0044 
0045    typedef typename bi::make_slist
0046       <node_t, bi::linear<true>, bi::base_hook<slist_hook_t> >::type node_slist_t;
0047 };
0048 
0049 }  //namespace ipcdetail {
0050 }  //namespace interprocess {
0051 }  //namespace boost {
0052 
0053 #include <boost/interprocess/detail/config_end.hpp>
0054 
0055 #endif   //#ifndef BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP