This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Livox-SDK/docs/classspdlog_1_1details_1_1thread__pool.html
T
2019-05-06 12:33:55 +08:00

405 lines
20 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Livox SDK API: spdlog::details::thread_pool Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="1.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Livox SDK API
&#160;<span id="projectnumber">V1.1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classspdlog_1_1details_1_1thread__pool.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classspdlog_1_1details_1_1thread__pool-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">spdlog::details::thread_pool Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a997d954a51e8fa8aa92071d1a9c08536"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">item_type</a> = <a class="el" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a></td></tr>
<tr class="separator:a997d954a51e8fa8aa92071d1a9c08536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77d633d56b0b5e1fe37965faa4642df5"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a77d633d56b0b5e1fe37965faa4642df5">q_type</a> = <a class="el" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html">details::mpmc_blocking_queue</a>&lt; <a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">item_type</a> &gt;</td></tr>
<tr class="separator:a77d633d56b0b5e1fe37965faa4642df5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2ac821eb936f7373cc51949fb05e841c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a2ac821eb936f7373cc51949fb05e841c">thread_pool</a> (size_t q_max_items, size_t threads_n)</td></tr>
<tr class="separator:a2ac821eb936f7373cc51949fb05e841c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27e41d821a8aa8137bc0e64df031ccd4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a27e41d821a8aa8137bc0e64df031ccd4">~thread_pool</a> ()</td></tr>
<tr class="separator:a27e41d821a8aa8137bc0e64df031ccd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e8f86d40f81af1d22a21ee0368287b2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a5e8f86d40f81af1d22a21ee0368287b2">thread_pool</a> (const <a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;)=delete</td></tr>
<tr class="separator:a5e8f86d40f81af1d22a21ee0368287b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a62f3ab1474d69cd1e25143664e856d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a1a62f3ab1474d69cd1e25143664e856d">operator=</a> (<a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a1a62f3ab1474d69cd1e25143664e856d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70cc09729d82174d84640eaface150e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a70cc09729d82174d84640eaface150e0">post_log</a> (<a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker_ptr, <a class="el" href="structspdlog_1_1details_1_1log__msg.html">details::log_msg</a> &amp;msg, <a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a> overflow_policy)</td></tr>
<tr class="separator:a70cc09729d82174d84640eaface150e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa851092603e816f78dd81bb980232048"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#aa851092603e816f78dd81bb980232048">post_flush</a> (<a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker_ptr, <a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a> overflow_policy)</td></tr>
<tr class="separator:aa851092603e816f78dd81bb980232048"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc34920f65797d8f54986dc1894a8804"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#adc34920f65797d8f54986dc1894a8804">overrun_counter</a> ()</td></tr>
<tr class="separator:adc34920f65797d8f54986dc1894a8804"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00118">118</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a997d954a51e8fa8aa92071d1a9c08536"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a997d954a51e8fa8aa92071d1a9c08536">&#9670;&nbsp;</a></span>item_type</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">spdlog::details::thread_pool::item_type</a> = <a class="el" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00121">121</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div>
</div>
<a id="a77d633d56b0b5e1fe37965faa4642df5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77d633d56b0b5e1fe37965faa4642df5">&#9670;&nbsp;</a></span>q_type</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a77d633d56b0b5e1fe37965faa4642df5">spdlog::details::thread_pool::q_type</a> = <a class="el" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html">details::mpmc_blocking_queue</a>&lt;<a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">item_type</a>&gt;</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00122">122</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2ac821eb936f7373cc51949fb05e841c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ac821eb936f7373cc51949fb05e841c">&#9670;&nbsp;</a></span>thread_pool() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">spdlog::details::thread_pool::thread_pool </td>
<td>(</td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>q_max_items</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>threads_n</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00124">124</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div>
</div>
<a id="a27e41d821a8aa8137bc0e64df031ccd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27e41d821a8aa8137bc0e64df031ccd4">&#9670;&nbsp;</a></span>~thread_pool()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">spdlog::details::thread_pool::~thread_pool </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00141">141</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div>
</div>
<a id="a5e8f86d40f81af1d22a21ee0368287b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e8f86d40f81af1d22a21ee0368287b2">&#9670;&nbsp;</a></span>thread_pool() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">spdlog::details::thread_pool::thread_pool </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1a62f3ab1474d69cd1e25143664e856d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a62f3ab1474d69cd1e25143664e856d">&#9670;&nbsp;</a></span>operator=()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a>&amp; spdlog::details::thread_pool::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="adc34920f65797d8f54986dc1894a8804"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc34920f65797d8f54986dc1894a8804">&#9670;&nbsp;</a></span>overrun_counter()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t spdlog::details::thread_pool::overrun_counter </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00174">174</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div>
</div>
<a id="aa851092603e816f78dd81bb980232048"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa851092603e816f78dd81bb980232048">&#9670;&nbsp;</a></span>post_flush()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void spdlog::details::thread_pool::post_flush </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>worker_ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a>&#160;</td>
<td class="paramname"><em>overflow_policy</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00169">169</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div>
</div>
<a id="a70cc09729d82174d84640eaface150e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70cc09729d82174d84640eaface150e0">&#9670;&nbsp;</a></span>post_log()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void spdlog::details::thread_pool::post_log </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>worker_ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structspdlog_1_1details_1_1log__msg.html">details::log_msg</a> &amp;&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a>&#160;</td>
<td class="paramname"><em>overflow_policy</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="thread__pool_8h_source.html#l00163">163</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>sdk_core/include/third_party/spdlog/spdlog/details/<a class="el" href="thread__pool_8h_source.html">thread_pool.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacespdlog.html">spdlog</a></li><li class="navelem"><a class="el" href="namespacespdlog_1_1details.html">details</a></li><li class="navelem"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>