当前位置:网站首页>Cwaitabletimer timer, used to create timer object access

Cwaitabletimer timer, used to create timer object access

2022-07-05 23:29:00 SEO wolf technique

CWaitableTimer timer , Create timer object access using

   The waiting time object refers to the synchronization object with the role of signaling when a specific expiration time arrives . Please note that , When the timer sends a signal , The processor must execute the relevant instructions . therefore , If you set a high-frequency periodic timer that keeps the processor busy , It means that your computer cannot maintain low power consumption for a long time .

  CWaitableTimer Generally speaking, timers ,CWaitableTimer timer 2315702359 Creating a timer object requires access to CreateWaitableTimer or CreateWariableTimerEx The thread of . Based on what you want to achieve , You can create a manual reset timer or a synchronous timer . Although in the first case , The timer keeps the signal state , Until the timer is called to create a new timer , The latter requires the state to remain unchanged , Until the thread finishes waiting for the timer object .

  CWaitableTimer Is designed to Win32 Can wait for the timer MFC class Even if the timer can wait Windows 95 or NT 3.x Not available on , The code will perform the correct operation on these operating systems , It will not cause the operating system loader to cause your program to fail to load , And display the error message “ Calling function is not defined ...”. Needless to say , Code enabled Unicode And provides build configuration .

  The CWaitableTimer was designed to be an MFC class for Win32 waitable timers Even though waitable timers are not available on Windows 95 or NT 3.x, the code will do the right thing on these operating systems without causing the OS loader to cause your program to fail to load, with the error message "Call to function not defined... ". it goes without saying that the code is Unicode enabled and build configurations are provided.

原网站

版权声明
本文为[SEO wolf technique]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140317292286.html