1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>execution_context::service</title> 5<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../boost_asio.html" title="Boost.Asio"> 8<link rel="up" href="../reference.html" title="Reference"> 9<link rel="prev" href="execution_context__id/id.html" title="execution_context::id::id"> 10<link rel="next" href="execution_context__service/context.html" title="execution_context::service::context"> 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="execution_context__id/id.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="execution_context__service/context.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="boost_asio.reference.execution_context__service"></a><a class="link" href="execution_context__service.html" title="execution_context::service">execution_context::service</a> 28</h3></div></div></div> 29<p> 30 Base class for all <a class="link" href="io_context.html" title="io_context"><code class="computeroutput">io_context</code></a> 31 services. 32 </p> 33<pre class="programlisting">class service : 34 noncopyable 35</pre> 36<h5> 37<a name="boost_asio.reference.execution_context__service.h0"></a> 38 <span class="phrase"><a name="boost_asio.reference.execution_context__service.member_functions"></a></span><a class="link" href="execution_context__service.html#boost_asio.reference.execution_context__service.member_functions">Member 39 Functions</a> 40 </h5> 41<div class="informaltable"><table class="table"> 42<colgroup> 43<col> 44<col> 45</colgroup> 46<thead><tr> 47<th> 48 <p> 49 Name 50 </p> 51 </th> 52<th> 53 <p> 54 Description 55 </p> 56 </th> 57</tr></thead> 58<tbody><tr> 59<td> 60 <p> 61 <a class="link" href="execution_context__service/context.html" title="execution_context::service::context"><span class="bold"><strong>context</strong></span></a> 62 </p> 63 </td> 64<td> 65 <p> 66 Get the context object that owns the service. 67 </p> 68 </td> 69</tr></tbody> 70</table></div> 71<h5> 72<a name="boost_asio.reference.execution_context__service.h1"></a> 73 <span class="phrase"><a name="boost_asio.reference.execution_context__service.protected_member_functions"></a></span><a class="link" href="execution_context__service.html#boost_asio.reference.execution_context__service.protected_member_functions">Protected 74 Member Functions</a> 75 </h5> 76<div class="informaltable"><table class="table"> 77<colgroup> 78<col> 79<col> 80</colgroup> 81<thead><tr> 82<th> 83 <p> 84 Name 85 </p> 86 </th> 87<th> 88 <p> 89 Description 90 </p> 91 </th> 92</tr></thead> 93<tbody> 94<tr> 95<td> 96 <p> 97 <a class="link" href="execution_context__service/service.html" title="execution_context::service::service"><span class="bold"><strong>service</strong></span></a> <span class="silver">[constructor]</span> 98 </p> 99 </td> 100<td> 101 <p> 102 Constructor. 103 </p> 104 </td> 105</tr> 106<tr> 107<td> 108 <p> 109 <a class="link" href="execution_context__service/_service.html" title="execution_context::service::~service"><span class="bold"><strong>~service</strong></span></a> <span class="silver">[destructor]</span> 110 </p> 111 </td> 112<td> 113 <p> 114 Destructor. 115 </p> 116 </td> 117</tr> 118</tbody> 119</table></div> 120<h5> 121<a name="boost_asio.reference.execution_context__service.h2"></a> 122 <span class="phrase"><a name="boost_asio.reference.execution_context__service.private_member_functions"></a></span><a class="link" href="execution_context__service.html#boost_asio.reference.execution_context__service.private_member_functions">Private 123 Member Functions</a> 124 </h5> 125<div class="informaltable"><table class="table"> 126<colgroup> 127<col> 128<col> 129</colgroup> 130<thead><tr> 131<th> 132 <p> 133 Name 134 </p> 135 </th> 136<th> 137 <p> 138 Description 139 </p> 140 </th> 141</tr></thead> 142<tbody> 143<tr> 144<td> 145 <p> 146 <a class="link" href="execution_context__service/notify_fork.html" title="execution_context::service::notify_fork"><span class="bold"><strong>notify_fork</strong></span></a> 147 </p> 148 </td> 149<td> 150 <p> 151 Handle notification of a fork-related event to perform any necessary 152 housekeeping. 153 </p> 154 </td> 155</tr> 156<tr> 157<td> 158 <p> 159 <a class="link" href="execution_context__service/shutdown.html" title="execution_context::service::shutdown"><span class="bold"><strong>shutdown</strong></span></a> 160 </p> 161 </td> 162<td> 163 <p> 164 Destroy all user-defined handler objects owned by the service. 165 </p> 166 </td> 167</tr> 168</tbody> 169</table></div> 170<h5> 171<a name="boost_asio.reference.execution_context__service.h3"></a> 172 <span class="phrase"><a name="boost_asio.reference.execution_context__service.requirements"></a></span><a class="link" href="execution_context__service.html#boost_asio.reference.execution_context__service.requirements">Requirements</a> 173 </h5> 174<p> 175 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/execution_context.hpp</code> 176 </p> 177<p> 178 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio/execution.hpp</code> 179 </p> 180</div> 181<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 182<td align="left"></td> 183<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 184 Kohlhoff<p> 185 Distributed under the Boost Software License, Version 1.0. (See accompanying 186 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>) 187 </p> 188</div></td> 189</tr></table> 190<hr> 191<div class="spirit-nav"> 192<a accesskey="p" href="execution_context__id/id.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="execution_context__service/context.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 193</div> 194</body> 195</html> 196