Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

nsiTimer platform differences

已查看 6 次
跳至第一个未读帖子

Tony C

未读,
2006年10月5日 17:40:522006/10/5
收件人
We're seeing a timing issue when using nsITimer on MSWindows that does
not occur on GNU/Linux.

A javascript XPCOM component sets a TYPE_ONE_SHOT timer to go off in
one hour. The timer does not go off until significantly (more than 2X)
after that, and the delay seems to be related to what hapens in the
chrome code, apparently having to do with other timers being used
there, though the timer-interaction part is a bit of a guess on my
part.

Anyone else seems different nsITimer behavior on Windows or have any
sort of explanation about whether this is a problem with the win32
timer implementation, or whether there is some workaround?

Thanks.

0 个新帖子