gpt4 book ai didi

winapi - 确定窗口消息队列深度

转载 作者:行者123 更新时间:2023-12-02 09:01:25 25 4
gpt4 key购买 nike

我们有一个应用程序,它使用窗口消息队列将数据从套接字传递到消费者 HWND(速率约为 2100Hz)。该应用程序已运行超过 2 年。最近,我们的应用程序开始出现问题,其中 WM_TIMER 没有被我们的应用程序触发/执行。我认为这是由于数据被泵入消息队列所致。

我的问题是有没有办法确定给定线程/HWND 的消息队列中有多少待处理消息?

最佳答案

Raymond Chen 在他的帖子“but then we ran into problems when we started posting 10,000 messages per second”中对此进行了非常详细的回答。

The research team asked to meet withthe user interface team to help workout their problems under load. Theyoutlined their design and explainedthat it worked well at low data rates,"but then we ran onto problems when westarted posting 10,000 messages persecond."

At that point, the heads of all theuser interface people just sat thereand boggled for a few seconds.

"That's like saying your Toyota Camryhas stability problems once you getover 500 miles per hour."

关于winapi - 确定窗口消息队列深度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/937641/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com