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@16
|
14 #if (defined _MSC_VER) && (_MSC_VER >= 1200)
|
Chris@16
|
15 # pragma once
|
Chris@16
|
16 #endif
|
Chris@16
|
17
|
Chris@16
|
18 #include <boost/interprocess/detail/config_begin.hpp>
|
Chris@16
|
19 #include <boost/interprocess/detail/workaround.hpp>
|
Chris@16
|
20
|
Chris@16
|
21 #include <boost/interprocess/sync/interprocess_mutex.hpp>
|
Chris@16
|
22 #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
|
Chris@16
|
23 #include <boost/interprocess/sync/null_mutex.hpp>
|
Chris@16
|
24
|
Chris@16
|
25 //!\file
|
Chris@16
|
26 //!Describes a shared interprocess_mutex family fit algorithm used to allocate objects in shared memory.
|
Chris@16
|
27
|
Chris@16
|
28 namespace boost {
|
Chris@16
|
29
|
Chris@16
|
30 namespace interprocess {
|
Chris@16
|
31
|
Chris@16
|
32 //!Describes interprocess_mutex family to use with Interprocess framework
|
Chris@16
|
33 //!based on boost::interprocess synchronization objects.
|
Chris@16
|
34 struct mutex_family
|
Chris@16
|
35 {
|
Chris@16
|
36 typedef boost::interprocess::interprocess_mutex mutex_type;
|
Chris@16
|
37 typedef boost::interprocess::interprocess_recursive_mutex recursive_mutex_type;
|
Chris@16
|
38 };
|
Chris@16
|
39
|
Chris@16
|
40 //!Describes interprocess_mutex family to use with Interprocess frameworks
|
Chris@16
|
41 //!based on null operation synchronization objects.
|
Chris@16
|
42 struct null_mutex_family
|
Chris@16
|
43 {
|
Chris@16
|
44 typedef boost::interprocess::null_mutex mutex_type;
|
Chris@16
|
45 typedef boost::interprocess::null_mutex recursive_mutex_type;
|
Chris@16
|
46 };
|
Chris@16
|
47
|
Chris@16
|
48 } //namespace interprocess {
|
Chris@16
|
49
|
Chris@16
|
50 } //namespace boost {
|
Chris@16
|
51
|
Chris@16
|
52 #include <boost/interprocess/detail/config_end.hpp>
|
Chris@16
|
53
|
Chris@16
|
54 #endif //#ifndef BOOST_INTERPROCESS_MUTEX_FAMILY_HPP
|
Chris@16
|
55
|
Chris@16
|
56
|