Adds asio library and Storage Module
This commit is contained in:
1 parent
79a6ee5779
commit
30439acd43
4869 files changed
+618801
-903
No files matched your search
@@ -0,0 +1,46 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::~thread_pool</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="wait.html" title="thread_pool::wait">
|
||||
<link rel="next" href="../thread_pool__basic_executor_type.html" title="thread_pool::basic_executor_type">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="wait.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../thread_pool__basic_executor_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool._thread_pool"></a><a class="link" href="_thread_pool.html" title="thread_pool::~thread_pool">thread_pool::~thread_pool</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool._thread_pool"></a>
|
||||
Destructor.
|
||||
</p>
|
||||
<pre class="programlisting">~thread_pool();
|
||||
</pre>
|
||||
<p>
|
||||
Automatically stops and joins the pool, if not explicitly done beforehand.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="wait.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../thread_pool__basic_executor_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,111 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::add_service</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="next" href="attach.html" title="thread_pool::attach">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../thread_pool.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="attach.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.add_service"></a><a class="link" href="add_service.html" title="thread_pool::add_service">thread_pool::add_service</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.add_service"></a>
|
||||
(Deprecated:
|
||||
Use <code class="computeroutput">make_service()</code>.) Add a service object to the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Service.html" title="Service requirements">Service</a>>
|
||||
friend void add_service(
|
||||
execution_context & e,
|
||||
Service * svc);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to add a service to the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.add_service.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.add_service.parameters"></a></span><a class="link" href="add_service.html#asio.reference.thread_pool.add_service.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">e</span></dt>
|
||||
<dd><p>
|
||||
The <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
object that owns the service.
|
||||
</p></dd>
|
||||
<dt><span class="term">svc</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The service object. On success, ownership of the service object is
|
||||
transferred to the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>.
|
||||
When the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
object is destroyed, it will destroy the service object by performing:
|
||||
</p>
|
||||
<pre class="programlisting">delete static_cast<execution_context::service*>(svc)
|
||||
</pre>
|
||||
<p>
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.add_service.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.add_service.exceptions"></a></span><a class="link" href="add_service.html#asio.reference.thread_pool.add_service.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::service_already_exists</span></dt>
|
||||
<dd><p>
|
||||
Thrown if a service of the given type is already present in the
|
||||
<a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>.
|
||||
</p></dd>
|
||||
<dt><span class="term">asio::invalid_service_owner</span></dt>
|
||||
<dd><p>
|
||||
Thrown if the service's owning <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
is not the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
object specified by the <code class="computeroutput">e</code> parameter.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.add_service.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.add_service.requirements"></a></span><a class="link" href="add_service.html#asio.reference.thread_pool.add_service.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../thread_pool.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="attach.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,49 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::attach</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="add_service.html" title="thread_pool::add_service">
|
||||
<link rel="next" href="destroy.html" title="thread_pool::destroy">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="add_service.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="destroy.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.attach"></a><a class="link" href="attach.html" title="thread_pool::attach">thread_pool::attach</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.attach"></a>
|
||||
Attaches the current
|
||||
thread to the pool.
|
||||
</p>
|
||||
<pre class="programlisting">void attach();
|
||||
</pre>
|
||||
<p>
|
||||
This function attaches the current thread to the pool so that it may be
|
||||
used for executing submitted function objects. Blocks the calling thread
|
||||
until the pool is stopped or joined and has no outstanding work.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="add_service.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="destroy.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,55 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::destroy</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="attach.html" title="thread_pool::attach">
|
||||
<link rel="next" href="executor.html" title="thread_pool::executor">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="attach.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.destroy"></a><a class="link" href="destroy.html" title="thread_pool::destroy">thread_pool::destroy</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.destroy"></a>
|
||||
Destroys all services
|
||||
in the context.
|
||||
</p>
|
||||
<pre class="programlisting">void destroy();
|
||||
</pre>
|
||||
<p>
|
||||
This function is implemented as follows:
|
||||
</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
||||
For each service object <code class="computeroutput">svc</code> in the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
set, in reverse order * of the beginning of service object lifetime,
|
||||
performs <code class="computeroutput">delete static_cast<execution_context::service*>(svc)</code>.
|
||||
</li></ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="attach.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::executor</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="destroy.html" title="thread_pool::destroy">
|
||||
<link rel="next" href="executor_type.html" title="thread_pool::executor_type">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="destroy.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="executor_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.executor"></a><a class="link" href="executor.html" title="thread_pool::executor">thread_pool::executor</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.executor"></a>
|
||||
Obtains the executor
|
||||
associated with the pool.
|
||||
</p>
|
||||
<pre class="programlisting">executor_type executor();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="destroy.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="executor_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,407 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::executor_type</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="executor.html" title="thread_pool::executor">
|
||||
<link rel="next" href="fork_event.html" title="thread_pool::fork_event">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="fork_event.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.executor_type"></a><a class="link" href="executor_type.html" title="thread_pool::executor_type">thread_pool::executor_type</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.executor_type"></a>
|
||||
Executor
|
||||
used to submit functions to a thread pool.
|
||||
</p>
|
||||
<pre class="programlisting">typedef basic_executor_type< std::allocator< void >, 0 > executor_type;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.executor_type.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.executor_type.types"></a></span><a class="link" href="executor_type.html#asio.reference.thread_pool.executor_type.types">Types</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
Name
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/index_type.html" title="thread_pool::basic_executor_type::index_type"><span class="bold"><strong>index_type</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The bulk execution index type.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/sender_type.html" title="thread_pool::basic_executor_type::sender_type"><span class="bold"><strong>sender_type</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The sender type, when this type is used as a scheduler.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/shape_type.html" title="thread_pool::basic_executor_type::shape_type"><span class="bold"><strong>shape_type</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The bulk execution shape type.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.executor_type.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.executor_type.member_functions"></a></span><a class="link" href="executor_type.html#asio.reference.thread_pool.executor_type.member_functions">Member
|
||||
Functions</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
Name
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/basic_executor_type.html" title="thread_pool::basic_executor_type::basic_executor_type"><span class="bold"><strong>basic_executor_type</strong></span></a> <span class="silver">[constructor]</span>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Copy constructor. <br> <span class="silver"> —</span><br> Move constructor.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/bulk_execute.html" title="thread_pool::basic_executor_type::bulk_execute"><span class="bold"><strong>bulk_execute</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Bulk execution function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/connect.html" title="thread_pool::basic_executor_type::connect"><span class="bold"><strong>connect</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Connect function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/context.html" title="thread_pool::basic_executor_type::context"><span class="bold"><strong>context</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Obtain the underlying execution context.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/defer.html" title="thread_pool::basic_executor_type::defer"><span class="bold"><strong>defer</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Request the thread pool to invoke the given function object.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/dispatch.html" title="thread_pool::basic_executor_type::dispatch"><span class="bold"><strong>dispatch</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Request the thread pool to invoke the given function object.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/execute.html" title="thread_pool::basic_executor_type::execute"><span class="bold"><strong>execute</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Execution function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/on_work_finished.html" title="thread_pool::basic_executor_type::on_work_finished"><span class="bold"><strong>on_work_finished</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Inform the thread pool that some work is no longer outstanding.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/on_work_started.html" title="thread_pool::basic_executor_type::on_work_started"><span class="bold"><strong>on_work_started</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Inform the thread pool that it has some outstanding work to do.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/operator_eq_.html" title="thread_pool::basic_executor_type::operator="><span class="bold"><strong>operator=</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Assignment operator. <br> <span class="silver"> —</span><br> Move assignment operator.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/post.html" title="thread_pool::basic_executor_type::post"><span class="bold"><strong>post</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Request the thread pool to invoke the given function object.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/query.html" title="thread_pool::basic_executor_type::query"><span class="bold"><strong>query</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Query the current value of the context property. <br> <span class="silver"> —</span><br>
|
||||
Query the current value of the blocking property. <br> <span class="silver"> —</span><br>
|
||||
Query the current value of the relationship property. <br>
|
||||
<span class="silver"> —</span><br> Query the current value of the allocator property. <br>
|
||||
<span class="silver"> —</span><br> Query the occupancy (recommended number of work items)
|
||||
for the pool.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/query__static.html" title="thread_pool::basic_executor_type::query"><span class="bold"><strong>query</strong></span></a> <span class="silver">[static]</span>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Query the current value of the bulk_guarantee property. <br>
|
||||
<span class="silver"> —</span><br> Query the current value of the mapping property. <br>
|
||||
<span class="silver"> —</span><br> Query the current value of the outstanding_work property.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/require.html" title="thread_pool::basic_executor_type::require"><span class="bold"><strong>require</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Obtain an executor with the blocking.possibly property. <br>
|
||||
<span class="silver"> —</span><br> Obtain an executor with the blocking.always property.
|
||||
<br> <span class="silver"> —</span><br> Obtain an executor with the blocking.never property.
|
||||
<br> <span class="silver"> —</span><br> Obtain an executor with the relationship.fork property.
|
||||
<br> <span class="silver"> —</span><br> Obtain an executor with the relationship.continuation
|
||||
property. <br> <span class="silver"> —</span><br> Obtain an executor with the outstanding_work.tracked
|
||||
property. <br> <span class="silver"> —</span><br> Obtain an executor with the outstanding_work.untracked
|
||||
property. <br> <span class="silver"> —</span><br> Obtain an executor with the specified
|
||||
allocator property. <br> <span class="silver"> —</span><br> Obtain an executor with the
|
||||
default allocator property.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/running_in_this_thread.html" title="thread_pool::basic_executor_type::running_in_this_thread"><span class="bold"><strong>running_in_this_thread</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Determine whether the thread pool is running in the current thread.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/schedule.html" title="thread_pool::basic_executor_type::schedule"><span class="bold"><strong>schedule</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Schedule function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/_basic_executor_type.html" title="thread_pool::basic_executor_type::~basic_executor_type"><span class="bold"><strong>~basic_executor_type</strong></span></a> <span class="silver">[destructor]</span>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Destructor.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.executor_type.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.executor_type.friends"></a></span><a class="link" href="executor_type.html#asio.reference.thread_pool.executor_type.friends">Friends</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
Name
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/operator_not__eq_.html" title="thread_pool::basic_executor_type::operator!="><span class="bold"><strong>operator!=</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Compare two executors for inequality.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/operator_eq__eq_.html" title="thread_pool::basic_executor_type::operator=="><span class="bold"><strong>operator==</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Compare two executors for equality.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.executor_type.h3"></a>
|
||||
<span><a name="asio.reference.thread_pool.executor_type.requirements"></a></span><a class="link" href="executor_type.html#asio.reference.thread_pool.executor_type.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="fork_event.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,73 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::fork_event</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="executor_type.html" title="thread_pool::executor_type">
|
||||
<link rel="next" href="get_executor.html" title="thread_pool::get_executor">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="executor_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.fork_event"></a><a class="link" href="fork_event.html" title="thread_pool::fork_event">thread_pool::fork_event</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.fork_event"></a>
|
||||
Fork-related
|
||||
event notifications.
|
||||
</p>
|
||||
<pre class="programlisting">enum fork_event
|
||||
</pre>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.fork_event.fork_prepare"></a>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.fork_event.fork_parent"></a>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.fork_event.fork_child"></a>
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.fork_event.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.fork_event.values"></a></span><a class="link" href="fork_event.html#asio.reference.thread_pool.fork_event.values">Values</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">fork_prepare</span></dt>
|
||||
<dd><p>
|
||||
Notify the context that the process is about to fork.
|
||||
</p></dd>
|
||||
<dt><span class="term">fork_parent</span></dt>
|
||||
<dd><p>
|
||||
Notify the context that the process has forked and is the parent.
|
||||
</p></dd>
|
||||
<dt><span class="term">fork_child</span></dt>
|
||||
<dd><p>
|
||||
Notify the context that the process has forked and is the child.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="executor_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::get_executor</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="fork_event.html" title="thread_pool::fork_event">
|
||||
<link rel="next" href="has_service.html" title="thread_pool::has_service">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="fork_event.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="has_service.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.get_executor"></a><a class="link" href="get_executor.html" title="thread_pool::get_executor">thread_pool::get_executor</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.get_executor"></a>
|
||||
Obtains the
|
||||
executor associated with the pool.
|
||||
</p>
|
||||
<pre class="programlisting">executor_type get_executor();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="fork_event.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="has_service.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,87 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::has_service</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="get_executor.html" title="thread_pool::get_executor">
|
||||
<link rel="next" href="join.html" title="thread_pool::join">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.has_service"></a><a class="link" href="has_service.html" title="thread_pool::has_service">thread_pool::has_service</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.has_service"></a>
|
||||
Determine if
|
||||
an <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
contains a specified service type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Service.html" title="Service requirements">Service</a>>
|
||||
friend bool has_service(
|
||||
execution_context & e);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to determine whether the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
contains a service object corresponding to the given service type.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.has_service.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.has_service.parameters"></a></span><a class="link" href="has_service.html#asio.reference.thread_pool.has_service.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">e</span></dt>
|
||||
<dd><p>
|
||||
The <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
object that owns the service.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.has_service.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.has_service.return_value"></a></span><a class="link" href="has_service.html#asio.reference.thread_pool.has_service.return_value">Return Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
A boolean indicating whether the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
contains the service.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.has_service.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.has_service.requirements"></a></span><a class="link" href="has_service.html#asio.reference.thread_pool.has_service.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,48 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::join</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="has_service.html" title="thread_pool::has_service">
|
||||
<link rel="next" href="make_service.html" title="thread_pool::make_service">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="has_service.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="make_service.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.join"></a><a class="link" href="join.html" title="thread_pool::join">thread_pool::join</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.join"></a>
|
||||
Joins the threads.
|
||||
</p>
|
||||
<pre class="programlisting">void join();
|
||||
</pre>
|
||||
<p>
|
||||
This function blocks until the threads in the pool have completed. If
|
||||
<code class="computeroutput">stop()</code> is not called prior to <code class="computeroutput">join()</code>, the <code class="computeroutput">join()</code>
|
||||
call will wait until the pool has no more outstanding work.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="has_service.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="make_service.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,97 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::make_service</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="join.html" title="thread_pool::join">
|
||||
<link rel="next" href="notify_fork.html" title="thread_pool::notify_fork">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="join.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="notify_fork.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.make_service"></a><a class="link" href="make_service.html" title="thread_pool::make_service">thread_pool::make_service</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.make_service"></a>
|
||||
Creates a
|
||||
service object and adds it to the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Service.html" title="Service requirements">Service</a>,
|
||||
typename... Args>
|
||||
friend Service & make_service(
|
||||
execution_context & e,
|
||||
Args &&... args);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to add a service to the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.make_service.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.make_service.parameters"></a></span><a class="link" href="make_service.html#asio.reference.thread_pool.make_service.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">e</span></dt>
|
||||
<dd><p>
|
||||
The <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
object that owns the service.
|
||||
</p></dd>
|
||||
<dt><span class="term">args</span></dt>
|
||||
<dd><p>
|
||||
Zero or more arguments to be passed to the service constructor.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.make_service.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.make_service.exceptions"></a></span><a class="link" href="make_service.html#asio.reference.thread_pool.make_service.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::service_already_exists</span></dt>
|
||||
<dd><p>
|
||||
Thrown if a service of the given type is already present in the
|
||||
<a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.make_service.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.make_service.requirements"></a></span><a class="link" href="make_service.html#asio.reference.thread_pool.make_service.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="join.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="notify_fork.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,122 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::notify_fork</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="make_service.html" title="thread_pool::make_service">
|
||||
<link rel="next" href="scheduler.html" title="thread_pool::scheduler">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="make_service.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="scheduler.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.notify_fork"></a><a class="link" href="notify_fork.html" title="thread_pool::notify_fork">thread_pool::notify_fork</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.notify_fork"></a>
|
||||
Notify the
|
||||
<a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
of a fork-related event.
|
||||
</p>
|
||||
<pre class="programlisting">void notify_fork(
|
||||
fork_event event);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to inform the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
that the process is about to fork, or has just forked. This allows the
|
||||
<a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>,
|
||||
and the services it contains, to perform any necessary housekeeping to
|
||||
ensure correct operation following a fork.
|
||||
</p>
|
||||
<p>
|
||||
This function must not be called while any other <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
function, or any function associated with the execution_context's derived
|
||||
class, is being called in another thread. It is, however, safe to call
|
||||
this function from within a completion handler, provided no other thread
|
||||
is accessing the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
or its derived class.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.notify_fork.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.notify_fork.parameters"></a></span><a class="link" href="notify_fork.html#asio.reference.thread_pool.notify_fork.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">event</span></dt>
|
||||
<dd><p>
|
||||
A fork-related event.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.notify_fork.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.notify_fork.exceptions"></a></span><a class="link" href="notify_fork.html#asio.reference.thread_pool.notify_fork.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure. If the notification fails the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
object should no longer be used and should be destroyed.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.notify_fork.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.notify_fork.example"></a></span><a class="link" href="notify_fork.html#asio.reference.thread_pool.notify_fork.example">Example</a>
|
||||
</h6>
|
||||
<p>
|
||||
The following code illustrates how to incorporate the <code class="computeroutput">notify_fork()</code>
|
||||
function:
|
||||
</p>
|
||||
<pre class="programlisting">my_execution_context.notify_fork(execution_context::fork_prepare);
|
||||
if (fork() == 0)
|
||||
{
|
||||
// This is the child process.
|
||||
my_execution_context.notify_fork(execution_context::fork_child);
|
||||
}
|
||||
else
|
||||
{
|
||||
// This is the parent process.
|
||||
my_execution_context.notify_fork(execution_context::fork_parent);
|
||||
}
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.notify_fork.h3"></a>
|
||||
<span><a name="asio.reference.thread_pool.notify_fork.remarks"></a></span><a class="link" href="notify_fork.html#asio.reference.thread_pool.notify_fork.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
For each service object <code class="computeroutput">svc</code> in the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
set, performs <code class="computeroutput">svc->notify_fork();</code>. When processing the
|
||||
fork_prepare event, services are visited in reverse order of the beginning
|
||||
of service object lifetime. Otherwise, services are visited in order of
|
||||
the beginning of service object lifetime.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="make_service.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="scheduler.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::scheduler</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="notify_fork.html" title="thread_pool::notify_fork">
|
||||
<link rel="next" href="scheduler_type.html" title="thread_pool::scheduler_type">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="notify_fork.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="scheduler_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.scheduler"></a><a class="link" href="scheduler.html" title="thread_pool::scheduler">thread_pool::scheduler</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.scheduler"></a>
|
||||
Obtains the scheduler
|
||||
associated with the pool.
|
||||
</p>
|
||||
<pre class="programlisting">scheduler_type scheduler();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="notify_fork.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="scheduler_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,407 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::scheduler_type</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="scheduler.html" title="thread_pool::scheduler">
|
||||
<link rel="next" href="shutdown.html" title="thread_pool::shutdown">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scheduler.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="shutdown.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.scheduler_type"></a><a class="link" href="scheduler_type.html" title="thread_pool::scheduler_type">thread_pool::scheduler_type</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.scheduler_type"></a>
|
||||
Scheduler
|
||||
used to schedule receivers on a thread pool.
|
||||
</p>
|
||||
<pre class="programlisting">typedef basic_executor_type< std::allocator< void >, 0 > scheduler_type;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.scheduler_type.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.scheduler_type.types"></a></span><a class="link" href="scheduler_type.html#asio.reference.thread_pool.scheduler_type.types">Types</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
Name
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/index_type.html" title="thread_pool::basic_executor_type::index_type"><span class="bold"><strong>index_type</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The bulk execution index type.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/sender_type.html" title="thread_pool::basic_executor_type::sender_type"><span class="bold"><strong>sender_type</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The sender type, when this type is used as a scheduler.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/shape_type.html" title="thread_pool::basic_executor_type::shape_type"><span class="bold"><strong>shape_type</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The bulk execution shape type.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.scheduler_type.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.scheduler_type.member_functions"></a></span><a class="link" href="scheduler_type.html#asio.reference.thread_pool.scheduler_type.member_functions">Member
|
||||
Functions</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
Name
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/basic_executor_type.html" title="thread_pool::basic_executor_type::basic_executor_type"><span class="bold"><strong>basic_executor_type</strong></span></a> <span class="silver">[constructor]</span>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Copy constructor. <br> <span class="silver"> —</span><br> Move constructor.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/bulk_execute.html" title="thread_pool::basic_executor_type::bulk_execute"><span class="bold"><strong>bulk_execute</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Bulk execution function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/connect.html" title="thread_pool::basic_executor_type::connect"><span class="bold"><strong>connect</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Connect function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/context.html" title="thread_pool::basic_executor_type::context"><span class="bold"><strong>context</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Obtain the underlying execution context.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/defer.html" title="thread_pool::basic_executor_type::defer"><span class="bold"><strong>defer</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Request the thread pool to invoke the given function object.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/dispatch.html" title="thread_pool::basic_executor_type::dispatch"><span class="bold"><strong>dispatch</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Request the thread pool to invoke the given function object.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/execute.html" title="thread_pool::basic_executor_type::execute"><span class="bold"><strong>execute</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Execution function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/on_work_finished.html" title="thread_pool::basic_executor_type::on_work_finished"><span class="bold"><strong>on_work_finished</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Inform the thread pool that some work is no longer outstanding.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/on_work_started.html" title="thread_pool::basic_executor_type::on_work_started"><span class="bold"><strong>on_work_started</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Inform the thread pool that it has some outstanding work to do.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/operator_eq_.html" title="thread_pool::basic_executor_type::operator="><span class="bold"><strong>operator=</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Assignment operator. <br> <span class="silver"> —</span><br> Move assignment operator.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/post.html" title="thread_pool::basic_executor_type::post"><span class="bold"><strong>post</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Request the thread pool to invoke the given function object.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/query.html" title="thread_pool::basic_executor_type::query"><span class="bold"><strong>query</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Query the current value of the context property. <br> <span class="silver"> —</span><br>
|
||||
Query the current value of the blocking property. <br> <span class="silver"> —</span><br>
|
||||
Query the current value of the relationship property. <br>
|
||||
<span class="silver"> —</span><br> Query the current value of the allocator property. <br>
|
||||
<span class="silver"> —</span><br> Query the occupancy (recommended number of work items)
|
||||
for the pool.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/query__static.html" title="thread_pool::basic_executor_type::query"><span class="bold"><strong>query</strong></span></a> <span class="silver">[static]</span>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Query the current value of the bulk_guarantee property. <br>
|
||||
<span class="silver"> —</span><br> Query the current value of the mapping property. <br>
|
||||
<span class="silver"> —</span><br> Query the current value of the outstanding_work property.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/require.html" title="thread_pool::basic_executor_type::require"><span class="bold"><strong>require</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Obtain an executor with the blocking.possibly property. <br>
|
||||
<span class="silver"> —</span><br> Obtain an executor with the blocking.always property.
|
||||
<br> <span class="silver"> —</span><br> Obtain an executor with the blocking.never property.
|
||||
<br> <span class="silver"> —</span><br> Obtain an executor with the relationship.fork property.
|
||||
<br> <span class="silver"> —</span><br> Obtain an executor with the relationship.continuation
|
||||
property. <br> <span class="silver"> —</span><br> Obtain an executor with the outstanding_work.tracked
|
||||
property. <br> <span class="silver"> —</span><br> Obtain an executor with the outstanding_work.untracked
|
||||
property. <br> <span class="silver"> —</span><br> Obtain an executor with the specified
|
||||
allocator property. <br> <span class="silver"> —</span><br> Obtain an executor with the
|
||||
default allocator property.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/running_in_this_thread.html" title="thread_pool::basic_executor_type::running_in_this_thread"><span class="bold"><strong>running_in_this_thread</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Determine whether the thread pool is running in the current thread.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/schedule.html" title="thread_pool::basic_executor_type::schedule"><span class="bold"><strong>schedule</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Schedule function.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/_basic_executor_type.html" title="thread_pool::basic_executor_type::~basic_executor_type"><span class="bold"><strong>~basic_executor_type</strong></span></a> <span class="silver">[destructor]</span>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Destructor.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.scheduler_type.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.scheduler_type.friends"></a></span><a class="link" href="scheduler_type.html#asio.reference.thread_pool.scheduler_type.friends">Friends</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
Name
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/operator_not__eq_.html" title="thread_pool::basic_executor_type::operator!="><span class="bold"><strong>operator!=</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Compare two executors for inequality.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../thread_pool__basic_executor_type/operator_eq__eq_.html" title="thread_pool::basic_executor_type::operator=="><span class="bold"><strong>operator==</strong></span></a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Compare two executors for equality.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.scheduler_type.h3"></a>
|
||||
<span><a name="asio.reference.thread_pool.scheduler_type.requirements"></a></span><a class="link" href="scheduler_type.html#asio.reference.thread_pool.scheduler_type.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scheduler.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="shutdown.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,55 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::shutdown</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="scheduler_type.html" title="thread_pool::scheduler_type">
|
||||
<link rel="next" href="stop.html" title="thread_pool::stop">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scheduler_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="stop.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.shutdown"></a><a class="link" href="shutdown.html" title="thread_pool::shutdown">thread_pool::shutdown</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.shutdown"></a>
|
||||
Shuts down all services
|
||||
in the context.
|
||||
</p>
|
||||
<pre class="programlisting">void shutdown();
|
||||
</pre>
|
||||
<p>
|
||||
This function is implemented as follows:
|
||||
</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
||||
For each service object <code class="computeroutput">svc</code> in the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
set, in reverse order of the beginning of service object lifetime,
|
||||
performs <code class="computeroutput">svc->shutdown()</code>.
|
||||
</li></ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scheduler_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="stop.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::stop</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="shutdown.html" title="thread_pool::shutdown">
|
||||
<link rel="next" href="thread_pool.html" title="thread_pool::thread_pool">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="shutdown.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="thread_pool.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.stop"></a><a class="link" href="stop.html" title="thread_pool::stop">thread_pool::stop</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.stop"></a>
|
||||
Stops the threads.
|
||||
</p>
|
||||
<pre class="programlisting">void stop();
|
||||
</pre>
|
||||
<p>
|
||||
This function stops the threads as soon as possible. As a result of calling
|
||||
<code class="computeroutput">stop()</code>, pending function objects may be never be invoked.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="shutdown.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="thread_pool.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,52 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::thread_pool</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="stop.html" title="thread_pool::stop">
|
||||
<link rel="next" href="thread_pool/overload1.html" title="thread_pool::thread_pool (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="stop.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="thread_pool/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.thread_pool"></a><a class="link" href="thread_pool.html" title="thread_pool::thread_pool">thread_pool::thread_pool</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.thread_pool"></a>
|
||||
Constructs
|
||||
a pool with an automatically determined number of threads.
|
||||
</p>
|
||||
<pre class="programlisting"><a class="link" href="thread_pool/overload1.html" title="thread_pool::thread_pool (1 of 2 overloads)">thread_pool</a>();
|
||||
<span class="emphasis"><em>» <a class="link" href="thread_pool/overload1.html" title="thread_pool::thread_pool (1 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Constructs a pool with a specified number of threads.
|
||||
</p>
|
||||
<pre class="programlisting"><a class="link" href="thread_pool/overload2.html" title="thread_pool::thread_pool (2 of 2 overloads)">thread_pool</a>(
|
||||
std::size_t num_threads);
|
||||
<span class="emphasis"><em>» <a class="link" href="thread_pool/overload2.html" title="thread_pool::thread_pool (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="stop.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="thread_pool/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,43 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::thread_pool (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool::thread_pool">
|
||||
<link rel="prev" href="../thread_pool.html" title="thread_pool::thread_pool">
|
||||
<link rel="next" href="overload2.html" title="thread_pool::thread_pool (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../thread_pool.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.thread_pool.thread_pool.overload1"></a><a class="link" href="overload1.html" title="thread_pool::thread_pool (1 of 2 overloads)">thread_pool::thread_pool
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Constructs a pool with an automatically determined number of threads.
|
||||
</p>
|
||||
<pre class="programlisting">thread_pool();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../thread_pool.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::thread_pool (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool::thread_pool">
|
||||
<link rel="prev" href="overload1.html" title="thread_pool::thread_pool (1 of 2 overloads)">
|
||||
<link rel="next" href="../use_service.html" title="thread_pool::use_service">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../use_service.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.thread_pool.thread_pool.overload2"></a><a class="link" href="overload2.html" title="thread_pool::thread_pool (2 of 2 overloads)">thread_pool::thread_pool
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Constructs a pool with a specified number of threads.
|
||||
</p>
|
||||
<pre class="programlisting">thread_pool(
|
||||
std::size_t num_threads);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../use_service.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::use_service</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="thread_pool/overload2.html" title="thread_pool::thread_pool (2 of 2 overloads)">
|
||||
<link rel="next" href="use_service/overload1.html" title="thread_pool::use_service (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="thread_pool/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="use_service/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.use_service"></a><a class="link" href="use_service.html" title="thread_pool::use_service">thread_pool::use_service</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.use_service"></a>
|
||||
Obtain the
|
||||
service object corresponding to the given type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Service.html" title="Service requirements">Service</a>>
|
||||
friend Service & <a class="link" href="use_service/overload1.html" title="thread_pool::use_service (1 of 2 overloads)">use_service</a>(
|
||||
execution_context & e);
|
||||
<span class="emphasis"><em>» <a class="link" href="use_service/overload1.html" title="thread_pool::use_service (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Service.html" title="Service requirements">Service</a>>
|
||||
friend Service & <a class="link" href="use_service/overload2.html" title="thread_pool::use_service (2 of 2 overloads)">use_service</a>(
|
||||
io_context & ioc);
|
||||
<span class="emphasis"><em>» <a class="link" href="use_service/overload2.html" title="thread_pool::use_service (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="thread_pool/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="use_service/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::use_service (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../use_service.html" title="thread_pool::use_service">
|
||||
<link rel="prev" href="../use_service.html" title="thread_pool::use_service">
|
||||
<link rel="next" href="overload2.html" title="thread_pool::use_service (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../use_service.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../use_service.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.thread_pool.use_service.overload1"></a><a class="link" href="overload1.html" title="thread_pool::use_service (1 of 2 overloads)">thread_pool::use_service
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
Obtain the service object corresponding to the given type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Service.html" title="Service requirements">Service</a>>
|
||||
friend Service & use_service(
|
||||
execution_context & e);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to locate a service object that corresponds to
|
||||
the given service type. If there is no existing implementation of the
|
||||
service, then the <a class="link" href="../../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
will create a new instance of the service.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.use_service.overload1.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.use_service.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.thread_pool.use_service.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">e</span></dt>
|
||||
<dd><p>
|
||||
The <a class="link" href="../../execution_context.html" title="execution_context"><code class="computeroutput">execution_context</code></a>
|
||||
object that owns the service.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.use_service.overload1.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.use_service.overload1.return_value"></a></span><a class="link" href="overload1.html#asio.reference.thread_pool.use_service.overload1.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
The service interface implementing the specified service type. Ownership
|
||||
of the service interface is not transferred to the caller.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.use_service.overload1.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.use_service.overload1.requirements"></a></span><a class="link" href="overload1.html#asio.reference.thread_pool.use_service.overload1.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../use_service.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../use_service.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,96 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::use_service (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../use_service.html" title="thread_pool::use_service">
|
||||
<link rel="prev" href="overload1.html" title="thread_pool::use_service (1 of 2 overloads)">
|
||||
<link rel="next" href="../wait.html" title="thread_pool::wait">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../use_service.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../wait.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.thread_pool.use_service.overload2"></a><a class="link" href="overload2.html" title="thread_pool::use_service (2 of 2 overloads)">thread_pool::use_service
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from execution_context.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
Obtain the service object corresponding to the given type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Service.html" title="Service requirements">Service</a>>
|
||||
friend Service & use_service(
|
||||
io_context & ioc);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to locate a service object that corresponds to
|
||||
the given service type. If there is no existing implementation of the
|
||||
service, then the <a class="link" href="../../io_context.html" title="io_context"><code class="computeroutput">io_context</code></a>
|
||||
will create a new instance of the service.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.use_service.overload2.h0"></a>
|
||||
<span><a name="asio.reference.thread_pool.use_service.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.thread_pool.use_service.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ioc</span></dt>
|
||||
<dd><p>
|
||||
The <a class="link" href="../../io_context.html" title="io_context"><code class="computeroutput">io_context</code></a>
|
||||
object that owns the service.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.use_service.overload2.h1"></a>
|
||||
<span><a name="asio.reference.thread_pool.use_service.overload2.return_value"></a></span><a class="link" href="overload2.html#asio.reference.thread_pool.use_service.overload2.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
The service interface implementing the specified service type. Ownership
|
||||
of the service interface is not transferred to the caller.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.use_service.overload2.h2"></a>
|
||||
<span><a name="asio.reference.thread_pool.use_service.overload2.remarks"></a></span><a class="link" href="overload2.html#asio.reference.thread_pool.use_service.overload2.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
This overload is preserved for backwards compatibility with services
|
||||
that inherit from <a class="link" href="../../io_context__service.html" title="io_context::service"><code class="computeroutput">io_context::service</code></a>.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.thread_pool.use_service.overload2.h3"></a>
|
||||
<span><a name="asio.reference.thread_pool.use_service.overload2.requirements"></a></span><a class="link" href="overload2.html#asio.reference.thread_pool.use_service.overload2.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../use_service.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../wait.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,48 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>thread_pool::wait</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../thread_pool.html" title="thread_pool">
|
||||
<link rel="prev" href="use_service/overload2.html" title="thread_pool::use_service (2 of 2 overloads)">
|
||||
<link rel="next" href="_thread_pool.html" title="thread_pool::~thread_pool">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="use_service/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="_thread_pool.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.thread_pool.wait"></a><a class="link" href="wait.html" title="thread_pool::wait">thread_pool::wait</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.thread_pool.wait"></a>
|
||||
Waits for threads to complete.
|
||||
</p>
|
||||
<pre class="programlisting">void wait();
|
||||
</pre>
|
||||
<p>
|
||||
This function blocks until the threads in the pool have completed. If
|
||||
<code class="computeroutput">stop()</code> is not called prior to <code class="computeroutput">wait()</code>, the <code class="computeroutput">wait()</code>
|
||||
call will wait until the pool has no more outstanding work.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
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>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="use_service/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="_thread_pool.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user