Imported Upstream version 1.51.0
[platform/upstream/boost.git] / boost / context / stack_utils.hpp
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_CTX_STACK_UTILS_H
8 #define BOOST_CTX_STACK_UTILS_H
9
10 #include <cstddef>
11
12 #include <boost/config.hpp>
13
14 #include <boost/context/detail/config.hpp>
15
16 #ifdef BOOST_HAS_ABI_HEADERS
17 # include BOOST_ABI_PREFIX
18 #endif
19
20 namespace boost {
21 namespace ctx {
22
23 BOOST_CONTEXT_DECL std::size_t default_stacksize();
24
25 BOOST_CONTEXT_DECL std::size_t minimum_stacksize();
26
27 BOOST_CONTEXT_DECL std::size_t maximum_stacksize();
28
29 BOOST_CONTEXT_DECL std::size_t pagesize();
30
31 BOOST_CONTEXT_DECL std::size_t page_count( std::size_t stacksize);
32
33 BOOST_CONTEXT_DECL bool is_stack_unbound();
34
35 }}
36
37 #ifdef BOOST_HAS_ABI_HEADERS
38 # include BOOST_ABI_SUFFIX
39 #endif
40
41 #endif // BOOST_CTX_STACK_UTILS_H