PageRenderTime 9ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/contrib/boost/asio/detail/thread.hpp

http://pythonocc.googlecode.com/
C++ Header | 60 lines | 41 code | 10 blank | 9 comment | 5 complexity | 833960a8caed5ae1e7f468296f7ceb21 MD5 | raw file
 1//
 2// thread.hpp
 3// ~~~~~~~~~~
 4//
 5// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)
 6//
 7// Distributed under the Boost Software License, Version 1.0. (See accompanying
 8// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 9//
10
11#ifndef BOOST_ASIO_DETAIL_THREAD_HPP
12#define BOOST_ASIO_DETAIL_THREAD_HPP
13
14#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15# pragma once
16#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18#include <boost/asio/detail/push_options.hpp>
19
20#include <boost/asio/detail/push_options.hpp>
21#include <boost/config.hpp>
22#include <boost/asio/detail/pop_options.hpp>
23
24#if !defined(BOOST_HAS_THREADS) || defined(BOOST_ASIO_DISABLE_THREADS)
25# include <boost/asio/detail/null_thread.hpp>
26#elif defined(BOOST_WINDOWS)
27# if defined(UNDER_CE)
28#  include <boost/asio/detail/wince_thread.hpp>
29# else
30#  include <boost/asio/detail/win_thread.hpp>
31# endif
32#elif defined(BOOST_HAS_PTHREADS)
33# include <boost/asio/detail/posix_thread.hpp>
34#else
35# error Only Windows and POSIX are supported!
36#endif
37
38namespace boost {
39namespace asio {
40namespace detail {
41
42#if !defined(BOOST_HAS_THREADS) || defined(BOOST_ASIO_DISABLE_THREADS)
43typedef null_thread thread;
44#elif defined(BOOST_WINDOWS)
45# if defined(UNDER_CE)
46typedef wince_thread thread;
47# else
48typedef win_thread thread;
49# endif
50#elif defined(BOOST_HAS_PTHREADS)
51typedef posix_thread thread;
52#endif
53
54} // namespace detail
55} // namespace asio
56} // namespace boost
57
58#include <boost/asio/detail/pop_options.hpp>
59
60#endif // BOOST_ASIO_DETAIL_THREAD_HPP