comparison DEPENDENCIES/generic/include/boost/asio/spawn.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 // 1 //
2 // spawn.hpp 2 // spawn.hpp
3 // ~~~~~~~~~ 3 // ~~~~~~~~~
4 // 4 //
5 // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 // 6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying 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) 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 // 9 //
10 10
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once 15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 17
18 #include <boost/asio/detail/config.hpp> 18 #include <boost/asio/detail/config.hpp>
19 #include <boost/coroutine/coroutine.hpp> 19 #include <boost/coroutine/all.hpp>
20 #include <boost/asio/detail/weak_ptr.hpp> 20 #include <boost/asio/detail/weak_ptr.hpp>
21 #include <boost/asio/detail/wrapped_handler.hpp> 21 #include <boost/asio/detail/wrapped_handler.hpp>
22 #include <boost/asio/io_service.hpp> 22 #include <boost/asio/io_service.hpp>
23 #include <boost/asio/strand.hpp> 23 #include <boost/asio/strand.hpp>
24 24
56 * When using Boost.Coroutine v2 (unidirectional coroutines), this type is: 56 * When using Boost.Coroutine v2 (unidirectional coroutines), this type is:
57 * @code push_coroutine<void> @endcode 57 * @code push_coroutine<void> @endcode
58 */ 58 */
59 #if defined(GENERATING_DOCUMENTATION) 59 #if defined(GENERATING_DOCUMENTATION)
60 typedef implementation_defined callee_type; 60 typedef implementation_defined callee_type;
61 #elif defined(BOOST_COROUTINES_UNIDRECT) || defined(BOOST_COROUTINES_V2) 61 #elif defined(BOOST_COROUTINES_UNIDIRECT) || defined(BOOST_COROUTINES_V2)
62 typedef boost::coroutines::push_coroutine<void> callee_type; 62 typedef boost::coroutines::push_coroutine<void> callee_type;
63 #else 63 #else
64 typedef boost::coroutines::coroutine<void()> callee_type; 64 typedef boost::coroutines::coroutine<void()> callee_type;
65 #endif 65 #endif
66 66
71 * When using Boost.Coroutine v2 (unidirectional coroutines), this type is: 71 * When using Boost.Coroutine v2 (unidirectional coroutines), this type is:
72 * @code pull_coroutine<void> @endcode 72 * @code pull_coroutine<void> @endcode
73 */ 73 */
74 #if defined(GENERATING_DOCUMENTATION) 74 #if defined(GENERATING_DOCUMENTATION)
75 typedef implementation_defined caller_type; 75 typedef implementation_defined caller_type;
76 #elif defined(BOOST_COROUTINES_UNIDRECT) || defined(BOOST_COROUTINES_V2) 76 #elif defined(BOOST_COROUTINES_UNIDIRECT) || defined(BOOST_COROUTINES_V2)
77 typedef boost::coroutines::pull_coroutine<void> caller_type; 77 typedef boost::coroutines::pull_coroutine<void> caller_type;
78 #else 78 #else
79 typedef boost::coroutines::coroutine<void()>::caller_type caller_type; 79 typedef boost::coroutines::coroutine<void()>::caller_type caller_type;
80 #endif 80 #endif
81 81