timer.hpp

来自「ABis无线接口全套资料」· HPP 代码 · 共 71 行

HPP
71
字号
/* ======================================================================== *\ | | |  JOYIT Communication Technology |  Copyright (C)  2002-2003,  All Right Reserved. | |  System: Programmable Signaling Gateway |  Sub-system: PSG |  Filename: timer.hpp |  Environment: Red Hat Linux 9.0 & GNU C/C++ Compiler 3.2.2 |  Function description: Timer |            |\* ======================================================================== */#ifndef _TIMER_HPP#define _TIMER_HPP#ifndef _PUBDEF_HPP#include "pubdef.hpp"#endif#ifndef _EVENT_HPP#include "event.hpp"#endifextern "C"{};#pragma pack(1)struct STimer{    WEvent  ev;    int     iTimeVal;    int     iTimeLeft;    char    cTimerFlag;    char    cTimerPrecision;};#pragma pack( )class STimerQue{public:	STimerQue();	~STimerQue();	int StartTimer(const WEvent &);	int StopTimer(const WEvent &);	int DelTimerQue(UINT32 mid=0);	int VerifyTimer(const WEvent& event); // Add 2005-01-10, by Wujianjin.//private:    EventQueueType  *m_opaTimerQue[IPC_MAXTIMERQUE];       };#endif// ------------------------------------------------------------------------////  Revision list.//  ==============////  1.0,        2003-05-28,     Lu Shengsheng//      Initial version.//// ------------------------------------------------------------------------

⌨️ 快捷键说明

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