-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexfns.tex
27 lines (17 loc) · 877 Bytes
/
exfns.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\newpage
\abschnitt{Appendix C: \exfns}\label{exfns}
\href{https://github.com/secondlife/3p-boost/blob/nat/exstate/tests/fccurrexc.cpp}{The following program}
illustrates the output of \exfns in cases involving fiber context
switches within a destructor invoked by exception handling, and within a catch
block.
\cppf{fccurrexc}
With fiber-specific exception state, \uncexs never exceeds 1, and \curex
displays:
\cpp{fiber() catch block after: std::current\_exception() = fiber() exception}
and:
\cpp{main() catch block after: std::current\_exception() = main() exception}
Without fiber-specific exception state, \uncexs displays up to 2 (one
exception in \main, one in \cpp{fiber()}), and \curex displays:
\cpp{fiber() catch block after: std::current\_exception() = main() exception}
and:
\cpp{main() catch block after: std::current\_exception() = fiber() exception}