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

📄 utility_8h-source.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/utility.h Source File</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/utility.h</h1><a href="utility_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//Utility classes</span><a name="l00002"></a>00002 <span class="comment">// Author - Alex.C.P (alexcpn@gmail.com)</span><a name="l00003"></a>00003 <a name="l00004"></a>00004 <span class="preprocessor">#if !defined(UTILITYCLOCK__INCLUDED)</span><a name="l00005"></a><a class="code" href="utility_8h.html#8c45afd6039327b099070c3362d1a4dc">00005</a> <span class="preprocessor"></span><span class="preprocessor">#define UTILITYCLOCK__INCLUDED</span><a name="l00006"></a>00006 <span class="preprocessor"></span><a name="l00007"></a>00007 <span class="keyword">namespace </span>PluginThreadPool<a name="l00008"></a>00008 {<a name="l00009"></a>00009 <a name="l00013"></a><a class="code" href="class_plugin_thread_pool_1_1_c_lock.html">00013</a> <span class="keyword">class </span><a class="code" href="class_plugin_thread_pool_1_1_c_lock.html">CLock</a><a name="l00014"></a>00014 {<a name="l00015"></a><a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#a39819ce24c7c1ec298b8b7ec0f9e6ce">00015</a>         CRITICAL_SECTION* <a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#a39819ce24c7c1ec298b8b7ec0f9e6ce">m_critsec</a>;<a name="l00016"></a>00016 <span class="keyword">public</span>:<a name="l00017"></a><a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#c0525271dd1f930456ce5e5da58132e4">00017</a>         <a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#c0525271dd1f930456ce5e5da58132e4">CLock</a>(CRITICAL_SECTION* critsec):<a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#a39819ce24c7c1ec298b8b7ec0f9e6ce">m_critsec</a>(critsec)<a name="l00018"></a>00018         {<a name="l00019"></a>00019                 EnterCriticalSection(<a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#a39819ce24c7c1ec298b8b7ec0f9e6ce">m_critsec</a>);<a name="l00020"></a>00020         }<a name="l00021"></a><a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#37fc78a558fd9b05e3ecbcaec94c323a">00021</a>         <a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#37fc78a558fd9b05e3ecbcaec94c323a">~CLock</a>()<a name="l00022"></a>00022         {<a name="l00023"></a>00023                 LeaveCriticalSection(<a class="code" href="class_plugin_thread_pool_1_1_c_lock.html#a39819ce24c7c1ec298b8b7ec0f9e6ce">m_critsec</a>);<a name="l00024"></a>00024         }<a name="l00025"></a>00025 <a name="l00026"></a>00026 <a name="l00027"></a>00027 };<a name="l00028"></a>00028 <a name="l00029"></a>00029 }<a name="l00030"></a>00030 <a name="l00031"></a>00031 <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="preprocessor">#endif // !defined(UTILITYCLOCK__INCLUDED)</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jan 20 13:16:01 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 + -