Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 processEvents 中可能因为并发执行导致 event 未及时处理问题 #138

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yinwoods
Copy link

@yinwoods yinwoods commented Sep 22, 2022

fix issue
#137

修改后的效果是每当线程离开 processEvents 方法时,必须保证 queuedEvents 队列被清空,从而避免有消息未处理

@yinwoods
Copy link
Author

之前的改法有问题,仍然存在丢消息的可能,现在将外层改为 for 循环,确保离开方法时,queuedEvents 会被清空

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant