mytimer_thread.h
来自「提供了rbtree ttree avltree list hashtable等常」· C头文件 代码 · 共 80 行
H
80 行
/*
*
*mytimer_thread.h 定时器线程 lin shao chuan
*
*/
#ifndef __MYTIMER_THREAD_H__
#define __MYTIMER_THREAD_H__
#include "mymempool.h"
#include "mytimerheap.h"
typedef struct __mytimer_thread_handle_
{int unused;}*HMYTIMER_THREAD;
/*
*
*定时器线程构造
*
*/
extern HMYTIMER_THREAD MyTimerThreadConstruct(HMYMEMPOOL hm);
/*
*
*定时器线程析构
*
*/
extern void MyTimerThreadDestruct(HMYTIMER_THREAD htm_thr);
/*
*
*运行定时器线程
*
*/
extern void MyTimerThreadRun(HMYTIMER_THREAD htm_thr);
/*
*
*添加定时器
*
*/
extern HTIMERID MyTimerThreadAddTimer(HMYTIMER_THREAD htm_thr, mytimer_node_t * node);
/*
*
*删除定时器
*
*/
extern int MyTimerThreadDelTimer(HMYTIMER_THREAD htm_thr, HTIMERID timer_id);
/*
*
*重置定时器
*
*/
extern HTIMERID MyTimerThreadResetTimer(HMYTIMER_THREAD htm_thr, HTIMERID timer_id, mytimer_node_t * node);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?