搜索资源列表
timer.tar
- linux下同一个进程中多个定时器实现。简单描述下定时器模块的实现,有一个manager单例类保存所有CTimer对象,开启一线程运行延迟函数,每次延迟间隔到,扫描保存CTimer的容器,对每个CTimer对象执行减少时间操作,减少到0则执行回调函数。对一次性CTimer,超时则从容器中删除,循环型的将间隔时间重置,不从容器中移除。 CTimer的start执行将对象插入到manager容器中操作;stop执行将对象从manager容器中删除的操作;reset执行先删除,重置间隔,然后再放到
src
- 数据采集:该启动器可以由用户发起为一个后台服务,也可以由Unix的定时服务发起,我们采用使用Unix发起的方式。 用户后台服务发起的方式只需要把线程的运行方式改变成循环就是。 -Data Acquisition: The starter can be initiated by the user as a background service, but also from time to time by the Unix service launched, we have adopted a
arm_plat1
- S5PV210定时器调节占空比通过while循环将占空比从90 降到10,然后回到90 。-S5PV210 timer adjusting the duty ratio through the while loop will be duty ratio 90 to 10, and then back to 90 .