1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // See http://www.boost.org/libs/interprocess for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #ifndef BOOST_INTERPROCESS_MUTEX_FAMILY_HPP
12 #define BOOST_INTERPROCESS_MUTEX_FAMILY_HPP
14 #ifndef BOOST_CONFIG_HPP
15 # include <boost/config.hpp>
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
22 #include <boost/interprocess/detail/config_begin.hpp>
23 #include <boost/interprocess/detail/workaround.hpp>
25 #include <boost/interprocess/sync/interprocess_mutex.hpp>
26 #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
27 #include <boost/interprocess/sync/null_mutex.hpp>
30 //!Describes a shared interprocess_mutex family fit algorithm used to allocate objects in shared memory.
34 namespace interprocess {
36 //!Describes interprocess_mutex family to use with Interprocess framework
37 //!based on boost::interprocess synchronization objects.
40 typedef boost::interprocess::interprocess_mutex mutex_type;
41 typedef boost::interprocess::interprocess_recursive_mutex recursive_mutex_type;
44 //!Describes interprocess_mutex family to use with Interprocess frameworks
45 //!based on null operation synchronization objects.
46 struct null_mutex_family
48 typedef boost::interprocess::null_mutex mutex_type;
49 typedef boost::interprocess::null_mutex recursive_mutex_type;
52 } //namespace interprocess {
56 #include <boost/interprocess/detail/config_end.hpp>
58 #endif //#ifndef BOOST_INTERPROCESS_MUTEX_FAMILY_HPP