intimers.h
来自「internich公司实现的一个非常非常小的OS」· C头文件 代码 · 共 40 行
H
40 行
/* * FILENAME: intimers.c * * Copyright 2001-2004 By InterNiche Technologies Inc. All rights reserved * * Handles InterNiche task & application interval timers. * * MODULE: MISCLIB * * PORTABLE: yes */#ifndef _INTIMERS_H#define _INTIMERS_H 1/* interval timer structure */struct intimer{ void (*callback)(long parm); long parm; u_long interval; /* fire interval, in TPS units */ u_long tmo; /* ctick to fire */};/* MAX number of interval timers in the system */#ifndef NUM_INTIMERS /* Allow override from ipport.h */#define NUM_INTIMERS 5#endifextern struct intimer intimers[NUM_INTIMERS]; /* the timers *//* entry points to interval timer package */long in_timerset(void (*callback)(long), long msecs, long parm);int in_timerkill(long timer);#endif /* _INTIMERS_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?