12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/>
- <title>UAS2: E:/uas2/Server/Timer.h Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <link href="doxygen.css" rel="stylesheet" type="text/css"/>
- </head>
- <body>
- <!-- Generated by Doxygen 1.6.2 -->
- <div class="navigation" id="top">
- <div class="tabs">
- <ul>
- <li><a href="main.html"><span>Main Page</span></a></li>
- <li><a href="annotated.html"><span>Classes</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- </ul>
- </div>
- <div class="tabs">
- <ul>
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>File Members</span></a></li>
- </ul>
- </div>
- <h1>E:/uas2/Server/Timer.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Timer.h: interface for the Timer class.</span>
- <a name="l00002"></a>00002 <span class="comment">//</span>
- <a name="l00004"></a>00004 <span class="comment"></span>
- <a name="l00005"></a>00005 <span class="preprocessor">#if !defined(AFX_TIMELIMIT_H__D2107E6A_33E5_11D3_8D14_00E0980636C2__INCLUDED_)</span>
- <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define AFX_TIMELIMIT_H__D2107E6A_33E5_11D3_8D14_00E0980636C2__INCLUDED_</span>
- <a name="l00007"></a>00007 <span class="preprocessor"></span>
- <a name="l00008"></a>00008 <span class="preprocessor">#if _MSC_VER > 1000</span>
- <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
- <a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER > 1000</span>
- <a name="l00011"></a>00011 <span class="preprocessor"></span>
- <a name="l00012"></a>00012 <span class="keyword">class </span>Timer
- <a name="l00013"></a>00013 {
- <a name="l00014"></a>00014 <span class="keyword">public</span>:
- <a name="l00015"></a>00015 <span class="keywordtype">void</span> StopTicking();
- <a name="l00016"></a>00016 <span class="keywordtype">void</span> StartTicking();
- <a name="l00017"></a>00017 Timer();
- <a name="l00018"></a>00018 <span class="keyword">virtual</span> ~Timer();
- <a name="l00019"></a>00019 <span class="keywordtype">int</span> GetTimeout(){<span class="keywordflow">return</span> m_msTimeout;}
- <a name="l00020"></a>00020 <span class="keywordtype">void</span> SetTimeout(<span class="keywordtype">int</span> t){m_msTimeout=t;}
- <a name="l00021"></a>00021 <span class="keyword">protected</span>:
- <a name="l00022"></a>00022 <span class="keywordtype">int</span> m_msTimeout;
- <a name="l00023"></a>00023 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Tick();
- <a name="l00024"></a>00024 <span class="keyword">private</span>:
- <a name="l00025"></a>00025 HANDLE m_hThreadDone;
- <a name="l00026"></a>00026 <span class="keywordtype">bool</span> m_bStop;
- <a name="l00027"></a>00027 <span class="keyword">static</span> UINT TickerThread(LPVOID pParam);
- <a name="l00028"></a>00028 HANDLE m_hEndThread;
- <a name="l00029"></a>00029 };
- <a name="l00030"></a>00030
- <a name="l00031"></a>00031 <span class="preprocessor">#endif // !defined(AFX_TIMELIMIT_H__D2107E6A_33E5_11D3_8D14_00E0980636C2__INCLUDED_)</span>
- </pre></div></div>
- <hr size="1"/><address style="text-align: right;"><small>Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
- </body>
- </html>
|