3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>Context classes
</title>
5 <link rel=
"stylesheet" href=
"../../../../../doc/src/boostbook.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.75.2">
7 <link rel=
"home" href=
"../index.html" title=
"Chapter 1. Context">
8 <link rel=
"up" href=
"../index.html" title=
"Chapter 1. Context">
9 <link rel=
"prev" href=
"requirements.html" title=
"Requirements">
10 <link rel=
"next" href=
"abstract_context/econtext.html" title=
"Class execution_context">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"requirements.html"><img src=
"../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../index.html"><img src=
"../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../index.html"><img src=
"../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"abstract_context/econtext.html"><img src=
"../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h2 class=
"title" style=
"clear: both">
27 <a name=
"context.abstract_context"></a><a class=
"link" href=
"abstract_context.html" title=
"Context classes">Context classes
</a>
28 </h2></div></div></div>
30 <dt><span class=
"section"><a href=
"abstract_context/econtext.html">Class execution_context
</a></span></dt>
31 <dt><span class=
"section"><a href=
"abstract_context/ccontext.html">Class captured_context
</a></span></dt>
32 <dt><span class=
"section"><a href=
"abstract_context/stack.html">Stack allocation
</a></span></dt>
34 <dt><span class=
"section"><a href=
"abstract_context/stack/protected_fixedsize.html">Class
35 <span class=
"emphasis"><em>protected_fixedsize
</em></span></a></span></dt>
36 <dt><span class=
"section"><a href=
"abstract_context/stack/fixedsize.html">Class
<span class=
"emphasis"><em>fixedsize_stack
</em></span></a></span></dt>
37 <dt><span class=
"section"><a href=
"abstract_context/stack/segmented.html">Class
<span class=
"emphasis"><em>segmented_stack
</em></span></a></span></dt>
38 <dt><span class=
"section"><a href=
"abstract_context/stack/stack_traits.html">Class
39 <span class=
"emphasis"><em>stack_traits
</em></span></a></span></dt>
40 <dt><span class=
"section"><a href=
"abstract_context/stack/stack_context.html">Class
41 <span class=
"emphasis"><em>stack_context
</em></span></a></span></dt>
42 <dt><span class=
"section"><a href=
"abstract_context/stack/valgrind.html">Support for
43 valgrind
</a></span></dt>
47 <span class=
"bold"><strong>Boost.Context
</strong></span> provides two classes encapsulating
48 <span class=
"emphasis"><em>fcontext_t
</em></span> and related functions (
<span class=
"emphasis"><em>jump_fcontext()
</em></span>
49 and
<span class=
"emphasis"><em>make_fcontext()
</em></span>) and stack management -
<span class=
"emphasis"><em>execution_context
</em></span>
50 and
<span class=
"emphasis"><em>captured_context
</em></span>.
<span class=
"emphasis"><em>execution_context
</em></span>
51 and
<span class=
"emphasis"><em>captured_context
</em></span> represent one
<span class=
"emphasis"><em>thread-of-execution
</em></span>.
52 A
<span class=
"emphasis"><em>thread-of-execution
</em></span> is a single flow of control within
53 a programm. Each class maintains a control structure, containing the preserved
54 registers, the stack and the stack allocator. The main difference between
55 <span class=
"emphasis"><em>execution_context
</em></span> and
<span class=
"emphasis"><em>captured_context
</em></span>
56 consists in maintaining context' control structure.
59 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
60 <td align=
"left"></td>
61 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2014 Oliver Kowalke
<p>
62 Distributed under the Boost Software License, Version
1.0. (See accompanying
63 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
68 <div class=
"spirit-nav">
69 <a accesskey=
"p" href=
"requirements.html"><img src=
"../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../index.html"><img src=
"../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../index.html"><img src=
"../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"abstract_context/econtext.html"><img src=
"../../../../../doc/src/images/next.png" alt=
"Next"></a>