Chris@16
|
1 //////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
2 //
|
Chris@16
|
3 // (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost
|
Chris@16
|
4 // Software License, Version 1.0. (See accompanying file
|
Chris@16
|
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 //
|
Chris@16
|
7 // See http://www.boost.org/libs/interprocess for documentation.
|
Chris@16
|
8 //
|
Chris@16
|
9 //////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
10
|
Chris@16
|
11 #ifndef BOOST_INTERPROCESS_MUTEX_FAMILY_HPP
|
Chris@16
|
12 #define BOOST_INTERPROCESS_MUTEX_FAMILY_HPP
|
Chris@16
|
13
|
Chris@101
|
14 #ifndef BOOST_CONFIG_HPP
|
Chris@101
|
15 # include <boost/config.hpp>
|
Chris@101
|
16 #endif
|
Chris@101
|
17 #
|
Chris@101
|
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
|
Chris@16
|
19 # pragma once
|
Chris@16
|
20 #endif
|
Chris@16
|
21
|
Chris@16
|
22 #include <boost/interprocess/detail/config_begin.hpp>
|
Chris@16
|
23 #include <boost/interprocess/detail/workaround.hpp>
|
Chris@16
|
24
|
Chris@16
|
25 #include <boost/interprocess/sync/interprocess_mutex.hpp>
|
Chris@16
|
26 #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
|
Chris@16
|
27 #include <boost/interprocess/sync/null_mutex.hpp>
|
Chris@16
|
28
|
Chris@16
|
29 //!\file
|
Chris@16
|
30 //!Describes a shared interprocess_mutex family fit algorithm used to allocate objects in shared memory.
|
Chris@16
|
31
|
Chris@16
|
32 namespace boost {
|
Chris@16
|
33
|
Chris@16
|
34 namespace interprocess {
|
Chris@16
|
35
|
Chris@16
|
36 //!Describes interprocess_mutex family to use with Interprocess framework
|
Chris@16
|
37 //!based on boost::interprocess synchronization objects.
|
Chris@16
|
38 struct mutex_family
|
Chris@16
|
39 {
|
Chris@16
|
40 typedef boost::interprocess::interprocess_mutex mutex_type;
|
Chris@16
|
41 typedef boost::interprocess::interprocess_recursive_mutex recursive_mutex_type;
|
Chris@16
|
42 };
|
Chris@16
|
43
|
Chris@16
|
44 //!Describes interprocess_mutex family to use with Interprocess frameworks
|
Chris@16
|
45 //!based on null operation synchronization objects.
|
Chris@16
|
46 struct null_mutex_family
|
Chris@16
|
47 {
|
Chris@16
|
48 typedef boost::interprocess::null_mutex mutex_type;
|
Chris@16
|
49 typedef boost::interprocess::null_mutex recursive_mutex_type;
|
Chris@16
|
50 };
|
Chris@16
|
51
|
Chris@16
|
52 } //namespace interprocess {
|
Chris@16
|
53
|
Chris@16
|
54 } //namespace boost {
|
Chris@16
|
55
|
Chris@16
|
56 #include <boost/interprocess/detail/config_end.hpp>
|
Chris@16
|
57
|
Chris@16
|
58 #endif //#ifndef BOOST_INTERPROCESS_MUTEX_FAMILY_HPP
|
Chris@16
|
59
|
Chris@16
|
60
|