]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/context/doc/html/context/econtext/winfibers.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / context / doc / html / context / econtext / winfibers.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Using WinFiber-API</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&#160;1.&#160;Context">
8 <link rel="up" href="../econtext.html" title="Class execution_context">
9 <link rel="prev" href="../econtext.html" title="Class execution_context">
10 <link rel="next" href="../stack.html" title="Stack allocation">
11 </head>
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>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../econtext.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../econtext.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="../stack.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
26 <div class="titlepage"><div><div><h3 class="title">
27 <a name="context.econtext.winfibers"></a><a class="link" href="winfibers.html" title="Using WinFiber-API">Using WinFiber-API</a>
28 </h3></div></div></div>
29 <p>
30 Because the TIB (thread information block) is not fully described in the
31 MSDN, it might be possible that not all required TIB-parts are swapped. With
32 compiler flag <code class="computeroutput"><span class="identifier">BOOST_USE_WINFIBERS</span></code>
33 <code class="computeroutput"><span class="identifier">execution_context</span></code> uses internally
34 the Windows Fiber API.
35 </p>
36 <div class="note"><table border="0" summary="Note">
37 <tr>
38 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/src/images/note.png"></td>
39 <th align="left">Note</th>
40 </tr>
41 <tr><td align="left" valign="top"><p>
42 The first call of <code class="computeroutput"><span class="identifier">execution_context</span><span class="special">::</span><span class="keyword">operator</span><span class="special">()</span></code> converts the thread into a Windows fiber
43 by invoking <code class="computeroutput"><span class="identifier">ConvertThreadToFiber</span><span class="special">()</span></code>. If desired, <code class="computeroutput"><span class="identifier">ConvertFiberToThread</span><span class="special">()</span></code> has to be called by the user explicitly
44 in order to release resources allocated by <code class="computeroutput"><span class="identifier">ConvertThreadToFiber</span><span class="special">()</span></code> (e.g. after using boost.context).
45 </p></td></tr>
46 </table></div>
47 </div>
48 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
49 <td align="left"></td>
50 <td align="right"><div class="copyright-footer">Copyright &#169; 2014 Oliver Kowalke<p>
51 Distributed under the Boost Software License, Version 1.0. (See accompanying
52 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>)
53 </p>
54 </div></td>
55 </tr></table>
56 <hr>
57 <div class="spirit-nav">
58 <a accesskey="p" href="../econtext.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../econtext.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="../stack.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
59 </div>
60 </body>
61 </html>