2 // Copyright Oliver Kowalke 2009.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_COROUTINES_ATTRIBUTES_H
8 #define BOOST_COROUTINES_ATTRIBUTES_H
12 #include <boost/config.hpp>
14 #include <boost/coroutine/flags.hpp>
15 #include <boost/coroutine/stack_allocator.hpp>
17 #ifdef BOOST_HAS_ABI_HEADERS
18 # include BOOST_ABI_PREFIX
22 namespace coroutines {
27 flag_unwind_t do_unwind;
29 attributes() BOOST_NOEXCEPT :
30 size( stack_allocator::traits_type::default_size() ),
31 do_unwind( stack_unwind)
34 explicit attributes( std::size_t size_) BOOST_NOEXCEPT :
36 do_unwind( stack_unwind)
39 explicit attributes( flag_unwind_t do_unwind_) BOOST_NOEXCEPT :
40 size( stack_allocator::traits_type::default_size() ),
41 do_unwind( do_unwind_)
46 flag_unwind_t do_unwind_) BOOST_NOEXCEPT :
48 do_unwind( do_unwind_)
54 #ifdef BOOST_HAS_ABI_HEADERS
55 # include BOOST_ABI_SUFFIX
58 #endif // BOOST_COROUTINES_ATTRIBUTES_H