]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | ////////////////////////////////////////////////////////////////////////////// |
2 | // | |
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) | |
6 | // | |
7 | // See http://www.boost.org/libs/interprocess for documentation. | |
8 | // | |
9 | ////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_RECURSIVE_MUTEX_HPP | |
12 | #define BOOST_INTERPROCESS_DETAIL_WINDOWS_RECURSIVE_MUTEX_HPP | |
13 | ||
14 | #ifndef BOOST_CONFIG_HPP | |
15 | # include <boost/config.hpp> | |
16 | #endif | |
17 | # | |
18 | #if defined(BOOST_HAS_PRAGMA_ONCE) | |
19 | # pragma once | |
20 | #endif | |
21 | ||
22 | #include <boost/interprocess/detail/config_begin.hpp> | |
23 | #include <boost/interprocess/detail/workaround.hpp> | |
24 | #include <boost/interprocess/sync/windows/mutex.hpp> | |
25 | ||
26 | namespace boost { | |
27 | namespace interprocess { | |
28 | namespace ipcdetail { | |
29 | ||
30 | //Windows mutex is already recursive | |
1e59de90 TL |
31 | class winapi_recursive_mutex |
32 | : public winapi_mutex | |
7c673cae | 33 | { |
1e59de90 TL |
34 | winapi_recursive_mutex(const winapi_recursive_mutex &); |
35 | winapi_recursive_mutex &operator=(const winapi_recursive_mutex &); | |
7c673cae | 36 | public: |
1e59de90 | 37 | winapi_recursive_mutex() : winapi_mutex() {} |
7c673cae FG |
38 | }; |
39 | ||
40 | } //namespace ipcdetail { | |
41 | } //namespace interprocess { | |
42 | } //namespace boost { | |
43 | ||
44 | ||
45 | #include <boost/interprocess/detail/config_end.hpp> | |
46 | ||
47 | #endif //BOOST_INTERPROCESS_DETAIL_WINDOWS_RECURSIVE_MUTEX_HPP |