qtimer.h
来自「这是状态机的一个框架结构的例子,可以作为状态机的基本架构」· C头文件 代码 · 共 30 行
H
30 行
/********************************************************************
* Quantum Timer declarations ("C+" version)
* Copyright (c) 2002 Miro Samek, Palo Alto, CA.
* All Rights Reserved.
*******************************************************************/
#ifndef qtimer_h
#define qtimer_h
#ifndef qevent_h
#include "qevent.h"
#endif
CLASS(QTimer)
QTimer *next__; /* to link timers in the list */
QEvent toutEvt__; /* timeout event instance to send */
QActive *active__;
unsigned short ctr__;
unsigned short interval__;
/* friend class QF; */
METHODS
void QTimerFireIn(QTimer *me, QActive *act,
QSignal toutSig, unsigned nTicks);
void QTimerFireEvery(QTimer *me, QActive *act,
QSignal toutSig, unsigned nTicks);
void QTimerDisarm(QTimer *me);
void QTimerRearm(QTimer *me, unsigned nTicks);
END_CLASS
#endif /* qtimer_h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?