RCFProto
 All Classes Functions Typedefs
event.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/event.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_EVENT_HPP
30 #define RCF_DETAIL_EVENT_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_event.hpp"
38 #elif defined(BOOST_WINDOWS)
39 # include <RCF/thread/win_event.hpp>
40 #elif defined(BOOST_HAS_PTHREADS)
41 # include <RCF/thread/posix_event.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_event event;
51 #elif defined(BOOST_WINDOWS)
52 typedef win_event event;
53 #elif defined(BOOST_HAS_PTHREADS)
54 typedef posix_event event;
55 #endif
56 
57 } // namespace detail
58 } // namespace RCF
59 
60 #endif // RCF_DETAIL_EVENT_HPP