|
项目描述: |
Many applications perform lengthy processing "in the background." Sometimes, performance considerations dictate using multithreading for such work. Threads involve extra development overhead, so they are not recommended for simple tasks such as the idle-time work that MFC does in the OnIdle function. This article focuses on a simple idle processing technique using the PeekMessage and PumpMessage functions.
许多应用程序传统的后台处理。有时出于性能的考虑,要求这样的多线程操作。多线程会增加开发负担,所以在开发像MFC的OnIdle函数这样的简单应用时,不推荐使用。这个项目演示了使用PeekMessage 和PumpMessage函数的一种简单的空闲进程技术。
来源: http://www.codeguru.com/system/IdleLoop.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
sta_deadlock |
 1.0  |
2004-03-29 |
下载 |
|
|