⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _thread_pool_8h.html

📁 用vc++写的一个简单的线程池的代码
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ThreadPool: D:/Coding/MMLADC_workarea/MMLADCNewDesign/ThreadPool/ThreadPool.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.7 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li><a href="namespaces.html"><span>Namespaces</span></a></li>    <li><a href="classes.html"><span>Classes</span></a></li>    <li id="current"><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="files.html"><span>File&nbsp;List</span></a></li>    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>  </ul></div><h1>D:/Coding/MMLADC_workarea/MMLADCNewDesign/ThreadPool/ThreadPool.h File Reference</h1><code>#include &quot;<a class="el" href="_command_8h-source.html">Command.h</a>&quot;</code><br><code>#include &quot;<a class="el" href="_thread_chain_8h-source.html">ThreadChain.h</a>&quot;</code><br><code>#include &quot;<a class="el" href="utility_8h-source.html">utility.h</a>&quot;</code><br><code>#include &lt;list&gt;</code><br><code>#include &lt;queue&gt;</code><br><code>#include &quot;<a class="el" href="_request_queue_8h-source.html">RequestQueue.h</a>&quot;</code><br><p>Include dependency graph for ThreadPool.h:<p><center><img src="_thread_pool_8h__incl.jpg" border="0" usemap="#D:/Coding/MMLADC_workarea/MMLADCNewDesign/ThreadPool/ThreadPool.h_map" alt=""></center><map name="D:/Coding/MMLADC_workarea/MMLADCNewDesign/ThreadPool/ThreadPool.h_map"><area href="_command_8h.html" shape="rect" coords="559,31,652,57" alt=""><area href="_thread_chain_8h.html" shape="rect" coords="549,105,661,132" alt=""><area href="utility_8h.html" shape="rect" coords="723,156,787,183" alt=""><area href="_request_queue_8h.html" shape="rect" coords="544,257,667,284" alt=""></map><p>This graph shows which files directly or indirectly include this file:<p><center><img src="_thread_pool_8h__dep__incl.jpg" border="0" usemap="#D:/Coding/MMLADC_workarea/MMLADCNewDesign/ThreadPool/ThreadPool.hdep_map" alt=""></center><map name="D:/Coding/MMLADC_workarea/MMLADCNewDesign/ThreadPool/ThreadPool.hdep_map"><area href="test_8cpp.html" shape="rect" coords="544,5,1003,32" alt=""></map><p><a href="_thread_pool_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Namespaces</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html">PluginThreadPool</a></td></tr><tr><td colspan="2"><br><h2>Classes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_plugin_thread_pool_1_1_thread_pool.html">PluginThreadPool::ThreadPool&lt; T &gt;</a></td></tr><tr><td colspan="2"><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_thread_pool_8h.html#31d99460bb75ebc8171d2c6d97ecac5c">THREADPOOLCLASS__INCLUDED</a></td></tr><tr><td colspan="2"><br><h2>Variables</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html#616a4102fec7a230b36de17a32e3e1f8">PluginThreadPool::THREAD_CHECKTIME</a> = 1000</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html#501e34e974f4270635b05766402e0884">PluginThreadPool::MAX_WAITTIMEOUT</a> = 2000</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">1 second  <a href="#501e34e974f4270635b05766402e0884"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html#a73b9ccd0c921d96ca4df9fbc675849c">PluginThreadPool::MAX_IDLETIME</a> = 30*1000</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">2 Seconds  <a href="#a73b9ccd0c921d96ca4df9fbc675849c"></a><br></td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="31d99460bb75ebc8171d2c6d97ecac5c"></a><!-- doxytag: member="ThreadPool.h::THREADPOOLCLASS__INCLUDED" ref="31d99460bb75ebc8171d2c6d97ecac5c" args="" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">#define THREADPOOLCLASS__INCLUDED          </td>        </tr>      </table></div><div class="memdoc"><p>This class models the ThreadPool To limit the overhead caused by thread creation and deletion for mml task creation and task sending, especially in the case of too many SRCHALARM commands to be fired, MMLADC should use a thread pool to manage the threads. <p>Definition at line <a class="el" href="_thread_pool_8h-source.html#l00011">11</a> of file <a class="el" href="_thread_pool_8h-source.html">ThreadPool.h</a>.</div></div><p><hr size="1"><address style="align: right;"><small>Generated on Sun Jan 20 13:16:03 2008 for ThreadPool by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -