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

📄 namespace_plugin_thread_pool.html

📁 用vc++写的一个简单的线程池的代码
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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: PluginThreadPool Namespace 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 id="current"><a href="namespaces.html"><span>Namespaces</span></a></li>    <li><a href="classes.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="namespaces.html"><span>Namespace List</span></a></li>    <li><a href="namespacemembers.html"><span>Namespace&nbsp;Members</span></a></li>  </ul></div><h1>PluginThreadPool Namespace Reference</h1><p><table border="0" cellpadding="0" cellspacing="0"><tr><td></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_1mem__fun3__t.html">mem_fun3_t</a></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_1binder3.html">binder3</a></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_1binder.html">binder</a></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_command.html">Command</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="_command_8h.html">Command.h</a>: interface for the <a class="el" href="class_plugin_thread_pool_1_1_command.html">Command</a> class.  <a href="class_plugin_thread_pool_1_1_command.html#_details">More...</a><br></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_c_request_queue.html">CRequestQueue</a></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_chain.html">ThreadChain</a></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">ThreadPool</a></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_c_lock.html">CLock</a></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memTemplParams" nowrap colspan="2">template&lt;typename _Ret, typename _Class, typename _arg1, typename _arg2, typename _arg3&gt; </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="class_plugin_thread_pool_1_1mem__fun3__t.html">mem_fun3_t</a>&lt; _Ret, _Class,<br> _arg1, _arg2, _arg3 &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html#c5e1155aca2c39df38c88365650f0858">mem_fun3</a> (_Ret(_Class::*_Pm)(_arg1, _arg2, _arg3))</td></tr><tr><td class="memTemplParams" nowrap colspan="2">template&lt;typename _Func, typename _P1, typename _arg1, typename _arg2, typename _arg3&gt; </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="class_plugin_thread_pool_1_1binder3.html">binder3</a>&lt; _Func, _P1, _arg1,<br> _arg2, _arg3 &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html#3a6bcc0891525e9f30453dd09a5c24e3">bind3</a> (_Func func, _P1 p1, _arg1 i, _arg2 j, _arg3 k)</td></tr><tr><td class="memTemplParams" nowrap colspan="2">template&lt;typename _Func, typename _P1&gt; </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="class_plugin_thread_pool_1_1binder.html">binder</a>&lt; _Func, _P1 &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html#e5f9caf7c3e35e580700e00676c81733">bind</a> (_Func func, _P1 p1)</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#c35e46c31b843129bfc6f8cf4847f6f0">PRIO_LOW</a> = 10</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#ce744b8830668fc53d7c97b3c77d7ce4">PRIO_NORMAL</a> = 20</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#9c6b32e1e66caf69ea18d7d087983e74">PRIO_HIGH</a> = 30</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_plugin_thread_pool.html#7ab14da67ffb6e8d20fd5355d58dba16">threadIDgen</a> = 0</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">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">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">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>Function Documentation</h2><a class="anchor" name="c5e1155aca2c39df38c88365650f0858"></a><!-- doxytag: member="PluginThreadPool::mem_fun3" ref="c5e1155aca2c39df38c88365650f0858" args="(_Ret(_Class::*_Pm)(_arg1, _arg2, _arg3))" --><div class="memitem"><div class="memproto"><div class="memtemplate">template&lt;typename _Ret, typename _Class, typename _arg1, typename _arg2, typename _arg3&gt; </div>      <table class="memname">        <tr>          <td class="memname"><a class="el" href="class_plugin_thread_pool_1_1mem__fun3__t.html">mem_fun3_t</a>&lt;_Ret,_Class,_arg1,_arg2,_arg3&gt; PluginThreadPool::mem_fun3           </td>          <td>(</td>          <td class="paramtype">_Ret(_Class::*)(_arg1, _arg2, _arg3)&nbsp;</td>          <td class="paramname"> <em>_Pm</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p><p>Definition at line <a class="el" href="_command_8h-source.html#l00047">47</a> of file <a class="el" href="_command_8h-source.html">Command.h</a>.<p>Referenced by <a class="el" href="test_8cpp-source.html#l00145">main()</a>.</div></div><p><a class="anchor" name="3a6bcc0891525e9f30453dd09a5c24e3"></a><!-- doxytag: member="PluginThreadPool::bind3" ref="3a6bcc0891525e9f30453dd09a5c24e3" args="(_Func func, _P1 p1, _arg1 i, _arg2 j, _arg3 k)" --><div class="memitem"><div class="memproto"><div class="memtemplate">template&lt;typename _Func, typename _P1, typename _arg1, typename _arg2, typename _arg3&gt; </div>      <table class="memname">        <tr>          <td class="memname"><a class="el" href="class_plugin_thread_pool_1_1binder3.html">binder3</a>&lt;_Func, _P1, _arg1, _arg2, _arg3&gt; PluginThreadPool::bind3           </td>          <td>(</td>          <td class="paramtype">_Func&nbsp;</td>          <td class="paramname"> <em>func</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">_P1&nbsp;</td>          <td class="paramname"> <em>p1</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">_arg1&nbsp;</td>          <td class="paramname"> <em>i</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">_arg2&nbsp;</td>          <td class="paramname"> <em>j</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">_arg3&nbsp;</td>          <td class="paramname"> <em>k</em></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p><p>Definition at line <a class="el" href="_command_8h-source.html#l00081">81</a> of file <a class="el" href="_command_8h-source.html">Command.h</a>.<p>Referenced by <a class="el" href="test_8cpp-source.html#l00145">main()</a>.</div></div><p><a class="anchor" name="e5f9caf7c3e35e580700e00676c81733"></a><!-- doxytag: member="PluginThreadPool::bind" ref="e5f9caf7c3e35e580700e00676c81733" args="(_Func func, _P1 p1)" --><div class="memitem"><div class="memproto"><div class="memtemplate">template&lt;typename _Func, typename _P1&gt; </div>      <table class="memname">        <tr>          <td class="memname"><a class="el" href="class_plugin_thread_pool_1_1binder.html">binder</a>&lt;_Func, _P1&gt; PluginThreadPool::bind           </td>          <td>(</td>          <td class="paramtype">_Func&nbsp;</td>          <td class="paramname"> <em>func</em>, </td>

⌨️ 快捷键说明

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