- 4
- 0
- 约3.73千字
- 约 3页
- 2015-09-26 发布于重庆
- 举报
SetWaitableTimer定时器的使用
SetWaitableTimer 定时器的使用
使用SetWaitableTimer 定时器前先了解一下几个函数:
HANDLE CreateWaitableTimer(
LPSECURITY_ATTRIBUTES lpTimerAttributes, //安全描述符,可以为NULL
BOOL bManualReset, //是否为手动定时器,如果是手动的,需要调用SetWaitableTimer
才能将定时器变成信号的,如果是自动的,则调用WaitForsingleObject 即可实现定时器信
号的重置
LPCTSTR lpTimerName //定时器名称,这对于进程间的定时器来说是有用的。
);
BOOL bManualReset:用于指明人工重置的定时器或自动重置的定时器。当发出人工重置的
定时器信号通知时,等待该定时器的所有线程均变为可调度线程。当发出自动重置的定时器
信号通知时,只有一个等待的线程变为可调度线程。
BOOL SetWaitableTimer(
HANDLE hTimer, // 定时器对象句柄
const LARGE_INTEGER *pDueTime, // 设定定时器从何时开始有信号
LONG lPeriod,
您可能关注的文档
- PQRASME要求填写的焊接工艺评定报告.doc
- Practical Automatic Determination of Causal Relationships in Software Execution Traces.pdf
- Prediction of Physical, Color, and Sensory Characteristics of Broiler Breasts by VisibleNea.pdf
- Precision Spectroscopy of Pionic Atoms From Pion Mass Evaluation to Tests of Chiral Perturb.pdf
- Predictive Evaluation of Econometric Forecasting Models in Commodity Futures Markets.pdf
- Predicting the Performance of Randomized Parallel Search An Application to Robot Motion Pla.pdf
- PRELIMINARY VERSION A Design Diversity Metric and Analysis of Redundant Systems.pdf
- Present and NearFuture Reflected Light Searches for CloseIn Planets.pdf
- prepared for a special issue of abour Economics,.pdf
- Present and Future Electroweak Precision Measurements and the Indirect Determination of the.pdf
原创力文档

文档评论(0)