Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 关于TimeSetEvent
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 关于TimeSetEvent
softbug
新警察
UID 1787
Digest Posts 0
Credits 20
Posts 8
点点分 20
Reading Access 10
Registered 2006-2-9
Status Offline
#1
Post at 2008-11-28 16:54
Profile
|
Blog
|
P.M.
关于TimeSetEvent
TimeSetEvent 这个东西哪个玩过,在单元文件的mmsystem里,当这个函数设定的计时回调函数发生的时候(不是消息的那种),请问操作系统是在当前运行的线程中处理,还是重新生成一个线程来回调这个函数?
本人想做个定时检测的代码,但又担心定时检测打断当前的线程(定时检测可能会很费CPU),所以正在权衡是用TimeSetEvent好呢,还是重开一个线程来单独检测的好。之所以用TimeSetEvent完全是看在它挺方便的。
stephenmax
(绿毛虫)
普通灌水员
UID 4757
Digest Posts 0
Credits 91
Posts 44
点点分 91
Reading Access 10
Registered 2007-1-19
Location SNDA
Status Offline
#2
Post at 2008-12-8 23:28
Profile
|
Site
|
Blog
|
P.M.
|
mmsystem,
回调方式是os另外创建的独立线程中执行
事件方式是需要waitsingleobject本线程等待
本人倾向于事件方式。。
这个不属于cnpack的内容把,msdn也有的
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-23 09:42
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.006293 second(s), 7 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats