You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 27, 2021. It is now read-only.
Well, if the event listeners are thread-safe/stateless and they collection never changes, this should not cause any issues - iteration over effectively immutable list of listeners should not cause any problems. The exception is thrown because LibGDX ObjectSet reuses its iterator and this causes issues when used from within multiple threads. I'll look into this.
I use EventDispatcher.postEvent in several threads.
Some times I get exception:
It is correct to use it from multiple threads?
It seems that need synchronization in method invokeEventListeners or something like this.
The text was updated successfully, but these errors were encountered: