RCFProto
 All Classes Functions Typedefs
thread.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/thread.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_THREAD_HPP
30 #define RCF_DETAIL_THREAD_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_thread.hpp"
38 #elif defined(BOOST_WINDOWS)
39 //# if defined(UNDER_CE)
40 //# include "wince_thread.hpp"
41 //# else
42 # include <RCF/thread/win_thread.hpp>
43 //# endif
44 #elif defined(BOOST_HAS_PTHREADS)
45 # include <RCF/thread/posix_thread.hpp>
46 #else
47 # error Only Windows and POSIX are supported!
48 #endif
49 
50 namespace RCF {
51 namespace detail {
52 
53 #if 0
54 typedef null_thread thread;
55 #elif defined(BOOST_WINDOWS)
56 //# if defined(UNDER_CE)
57 //typedef wince_thread thread;
58 //# else
59 typedef win_thread thread;
60 //# endif
61 #elif defined(BOOST_HAS_PTHREADS)
62 typedef posix_thread thread;
63 #endif
64 
65 } // namespace detail
66 } // namespace RCF
67 
68 #endif // RCF_DETAIL_THREAD_HPP