~pavel-pimenov/dcplusplus/flylinkdc-mediainfo

« back to all changes in this revision

Viewing changes to boost/boost/coroutine/attributes.hpp

  • Committer: pavel pimenov
  • Date: 2013-06-21 16:01:07 UTC
  • mfrom: (2636.1.678 trunk)
  • Revision ID: pavel.pimenov@gmail.com-20130621160107-icvvzptxavbbbhpx
* [merge]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
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)
 
6
 
 
7
#ifndef BOOST_COROUTINES_ATTRIBUTES_H
 
8
#define BOOST_COROUTINES_ATTRIBUTES_H
 
9
 
 
10
#include <cstddef>
 
11
 
 
12
#include <boost/config.hpp>
 
13
 
 
14
#include <boost/coroutine/flags.hpp>
 
15
#include <boost/coroutine/stack_allocator.hpp>
 
16
 
 
17
#ifdef BOOST_HAS_ABI_HEADERS
 
18
#  include BOOST_ABI_PREFIX
 
19
#endif
 
20
 
 
21
namespace boost {
 
22
namespace coroutines {
 
23
 
 
24
struct attributes
 
25
{
 
26
    std::size_t     size;
 
27
    flag_unwind_t   do_unwind;
 
28
    flag_fpu_t      preserve_fpu;
 
29
 
 
30
    attributes() BOOST_NOEXCEPT :
 
31
        size( stack_allocator::default_stacksize() ),
 
32
        do_unwind( stack_unwind),
 
33
        preserve_fpu( fpu_preserved)
 
34
    {}
 
35
 
 
36
    explicit attributes( std::size_t size_) BOOST_NOEXCEPT :
 
37
        size( size_),
 
38
        do_unwind( stack_unwind),
 
39
        preserve_fpu( fpu_preserved)
 
40
    {}
 
41
 
 
42
    explicit attributes( flag_unwind_t do_unwind_) BOOST_NOEXCEPT :
 
43
        size( stack_allocator::default_stacksize() ),
 
44
        do_unwind( do_unwind_),
 
45
        preserve_fpu( fpu_preserved)
 
46
    {}
 
47
 
 
48
    explicit attributes( flag_fpu_t preserve_fpu_) BOOST_NOEXCEPT :
 
49
        size( stack_allocator::default_stacksize() ),
 
50
        do_unwind( stack_unwind),
 
51
        preserve_fpu( preserve_fpu_)
 
52
    {}
 
53
 
 
54
    explicit attributes(
 
55
            std::size_t size_,
 
56
            flag_unwind_t do_unwind_) BOOST_NOEXCEPT :
 
57
        size( size_),
 
58
        do_unwind( do_unwind_),
 
59
        preserve_fpu( fpu_preserved)
 
60
    {}
 
61
 
 
62
    explicit attributes(
 
63
            std::size_t size_,
 
64
            flag_fpu_t preserve_fpu_) BOOST_NOEXCEPT :
 
65
        size( size_),
 
66
        do_unwind( stack_unwind),
 
67
        preserve_fpu( preserve_fpu_)
 
68
    {}
 
69
 
 
70
    explicit attributes(
 
71
            flag_unwind_t do_unwind_,
 
72
            flag_fpu_t preserve_fpu_) BOOST_NOEXCEPT :
 
73
        size( stack_allocator::default_stacksize() ),
 
74
        do_unwind( do_unwind_),
 
75
        preserve_fpu( preserve_fpu_)
 
76
    {}
 
77
};
 
78
 
 
79
}}
 
80
 
 
81
#ifdef BOOST_HAS_ABI_HEADERS
 
82
#  include BOOST_ABI_SUFFIX
 
83
#endif
 
84
 
 
85
#endif // BOOST_COROUTINES_ATTRIBUTES_H