Alternative for Postmessage and sendmessage

后端 未结 5 1889
北荒
北荒 2021-01-31 00:46

i have a program which is using several threads to execute some task. Each thread is having a bunch of task to execute. after executing one of them, each thred will call a post

5条回答
  •  醉酒成梦
    2021-01-31 00:49

    You are going to struggle to find anything better than PostMessage. My guess is that your problem is that you are updating UI too frequently and your queue is becoming saturated because you cannot service it quickly enough. How about skipping updates if you updated less than a second ago say? If that restores responsiveness then you can consider a more robust solution.

提交回复
热议问题