Open yinwoods opened 2 years ago
fix issue
修改后的效果是每当线程离开 processEvents 方法时,必须保证 queuedEvents 队列被清空,从而避免有消息未处理
之前的改法有问题,仍然存在丢消息的可能,现在将外层改为 for 循环,确保离开方法时,queuedEvents 会被清空
fix issue
137
修改后的效果是每当线程离开 processEvents 方法时,必须保证 queuedEvents 队列被清空,从而避免有消息未处理