Insane_DNS/libraries/asio-1.28.1/doc/asio/reference/system_executor.html

283 lines
12 KiB
HTML
Raw Normal View History

2023-10-24 21:59:30 -04:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>system_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="../reference.html" title="Reference">
<link rel="prev" href="system_error/_system_error.html" title="system_error::~system_error">
<link rel="next" href="system_timer.html" title="system_timer">
<meta name="viewport" content="width=device-width, initial-scale=1">
</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="system_error/_system_error.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.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="system_timer.html"><img src="../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="asio.reference.system_executor"></a><a class="link" href="system_executor.html" title="system_executor">system_executor</a>
</h3></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.system_executor"></a>
</p>
<p>
An executor that uses arbitrary threads.
</p>
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">basic_system_executor</span><span class="special">&lt;</span> <span class="identifier">execution</span><span class="special">::</span><span class="identifier">blocking_t</span><span class="special">::</span><span class="identifier">possibly_t</span><span class="special">,</span> <span class="identifier">execution</span><span class="special">::</span><span class="identifier">relationship_t</span><span class="special">::</span><span class="identifier">fork_t</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">allocator</span><span class="special">&lt;</span> <span class="keyword">void</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">system_executor</span><span class="special">;</span>
</pre>
<h5>
<a name="asio.reference.system_executor.h0"></a>
<span><a name="asio.reference.system_executor.member_functions"></a></span><a class="link" href="system_executor.html#asio.reference.system_executor.member_functions">Member
Functions</a>
</h5>
<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="basic_system_executor/basic_system_executor.html" title="basic_system_executor::basic_system_executor"><span class="bold"><strong>basic_system_executor</strong></span></a> <span class="silver">[constructor]</span>
</p>
</td>
<td>
<p>
Default constructor.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/context.html" title="basic_system_executor::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="basic_system_executor/defer.html" title="basic_system_executor::defer"><span class="bold"><strong>defer</strong></span></a>
</p>
</td>
<td>
<p>
Request the system executor to invoke the given function object.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/dispatch.html" title="basic_system_executor::dispatch"><span class="bold"><strong>dispatch</strong></span></a>
</p>
</td>
<td>
<p>
Request the system executor to invoke the given function object.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/execute.html" title="basic_system_executor::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="basic_system_executor/on_work_finished.html" title="basic_system_executor::on_work_finished"><span class="bold"><strong>on_work_finished</strong></span></a>
</p>
</td>
<td>
<p>
Inform the executor that some work is no longer outstanding.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/on_work_started.html" title="basic_system_executor::on_work_started"><span class="bold"><strong>on_work_started</strong></span></a>
</p>
</td>
<td>
<p>
Inform the executor that it has some outstanding work to do.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/post.html" title="basic_system_executor::post"><span class="bold"><strong>post</strong></span></a>
</p>
</td>
<td>
<p>
Request the system executor to invoke the given function object.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/query.html" title="basic_system_executor::query"><span class="bold"><strong>query</strong></span></a>
</p>
</td>
<td>
<p>
Query the current value of the allocator property. <br> <span class="silver"></span><br>
Query the occupancy (recommended number of work items) for the
system context.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/query__static.html" title="basic_system_executor::query"><span class="bold"><strong>query</strong></span></a> <span class="silver">[static]</span>
</p>
</td>
<td>
<p>
Query the current value of the mapping property. <br> <span class="silver"></span><br>
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.
</p>
</td>
</tr>
<tr>
<td>
<p>
<a class="link" href="basic_system_executor/require.html" title="basic_system_executor::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.continuation 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 specified allocator property.
<br> <span class="silver"></span><br> Obtain an executor with the default allocator property.
</p>
</td>
</tr>
</tbody>
</table></div>
<h5>
<a name="asio.reference.system_executor.h1"></a>
<span><a name="asio.reference.system_executor.friends"></a></span><a class="link" href="system_executor.html#asio.reference.system_executor.friends">Friends</a>
</h5>
<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="basic_system_executor/operator_not__eq_.html" title="basic_system_executor::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="basic_system_executor/operator_eq__eq_.html" title="basic_system_executor::operator=="><span class="bold"><strong>operator==</strong></span></a>
</p>
</td>
<td>
<p>
Compare two executors for equality.
</p>
</td>
</tr>
</tbody>
</table></div>
<p>
The system executor represents an execution context where functions are permitted
to run on arbitrary threads. When the blocking.never property is established,
the system executor will schedule the function to run on an unspecified system
thread pool. When either blocking.possibly or blocking.always is established,
the executor invokes the function immediately.
</p>
<p>
The system executor represents an execution context where functions are permitted
to run on arbitrary threads. When the blocking.never property is established,
the system executor will schedule the function to run on an unspecified system
thread pool. When either blocking.possibly or blocking.always is established,
the executor invokes the function immediately.
</p>
<h5>
<a name="asio.reference.system_executor.h2"></a>
<span><a name="asio.reference.system_executor.requirements"></a></span><a class="link" href="system_executor.html#asio.reference.system_executor.requirements">Requirements</a>
</h5>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/system_executor.hpp</code>
</p>
<p>
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
</p>
</div>
<div class="copyright-footer">Copyright © 2003-2023 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>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="system_error/_system_error.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.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="system_timer.html"><img src="../../next.png" alt="Next"></a>
</div>
</body>
</html>