File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 66]
77
88[#cc]
9- [section:cc call/cc]
9+ [section:cc Context switching with call/cc]
1010
1111__callcc__ (call with current continuation) is a universal control operator
1212(well-known from the programming language Scheme) that captures the current
Original file line number Diff line number Diff line change 1010
1111[warning __econtext__ is deprecated.]
1212
13- [note Include `execution_context.hpp` and provide flag
14- ['BOOST_EXECUTION_CONTEXT=1] in order to use __econtext__.]
13+ [note Include `execution_context.hpp` and pass define BOOST_EXECUTION_CONTEXT=1
14+ at compilers command-line in order to use __econtext__ (v1) .]
1515
16- [note This class is only enabled if property ['segmented-stacks=on] (enables
17- segmented stacks) is specified at b2-commandline or compiler flag
18- ['BOOST_EXECUTION_CONTEXT=1] was defined.]
16+ [note Segmented stacks (['segmented-stacks=on]), e.g. on demand growing stacks,
17+ can only be used with __econtext__ (v1).]
1918
2019Class __econtext__ encapsulates context switching and manages the associated
2120context' stack (allocation/deallocation).
Original file line number Diff line number Diff line change 1010
1111[warning __econtext__ is deprecated.]
1212
13- [note Include `execution_context.hpp` and provide flag
14- ['BOOST_EXECUTION_CONTEXT=2] in order to use __econtext__.]
13+ [note Include `execution_context.hpp` and pass define BOOST_EXECUTION_CONTEXT=2
14+ at compilers command-line in order to use __econtext__ (v2).]
15+
16+ [note Segmented stacks (['segmented-stacks=on]), e.g. on demand growing stacks,
17+ are not supported by __econtext__ (v2).]
1518
1619Class __econtext__ encapsulates context switching and manages the associated
1720context' stack (allocation/deallocation).
Original file line number Diff line number Diff line change @@ -214,6 +214,8 @@ __segmented_stack__ __boost_context__ must be built with
214214property `segmented-stacks`, e.g. [*toolset=gcc segmented-stacks=on] at b2/bjam
215215command line.]
216216
217+ [note Segmented stacks can only be used with __econtext__ (v1)].
218+
217219 #include <boost/context/segmented_stack.hpp>
218220
219221 template< typename traitsT >
You can’t perform that action at this time.
0 commit comments