RCFProto

- Main Page
- Classes
- Files

- File List

All Classes Functions Typedefs
mutex.hpp
1
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2013, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 2.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18
19 //
20 // detail/mutex.hpp
21 // ~~~~~~~~~~~~~~~~
22 //
23 // Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com)
24 //
25 // Distributed under the Boost Software License, Version 1.0. (See accompanying
26 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
27 //
28
29 #ifndef RCF_DETAIL_MUTEX_HPP
30 #define RCF_DETAIL_MUTEX_HPP
31
32 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
33 # pragma once
34 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
35
36 #if 0
37 # include "null_mutex.hpp"
38 #elif defined(BOOST_WINDOWS)
39 # include <RCF/thread/win_mutex.hpp>
40 #elif defined(BOOST_HAS_PTHREADS)
41 # include <RCF/thread/posix_mutex.hpp>
42 #else
43 # error Only Windows and POSIX are supported!
44 #endif
45
46 namespace RCF {
47 namespace detail {
48
49 #if 0
50 typedef null_mutex mutex;
51 #elif defined(BOOST_WINDOWS)
52 typedef win_mutex mutex;
53 #elif defined(BOOST_HAS_PTHREADS)
54 typedef posix_mutex mutex;
55 #endif
56
57 } // namespace detail
58 } // namespace RCF
59
60 #endif // RCF_DETAIL_MUTEX_HPP