-
Notifications
You must be signed in to change notification settings - Fork 4
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
Further synchronization #124
Conversation
Thanks! I'll take a look tomorrow if I find time. Keep #114 in mind! So only things need to be synchronized that are being accessed concurrently within the library itself. |
Some reasoning: Why did I add Why did I add It's possible that some synchronization on other methods is redundant now. However, the callbacks need it I think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your analysis is correct and we should merge this. One nit in-line.
That being said, we still face many potential race conditions since the application uses its own thread, so this only fixes potential races between the WebSocket threads. See #114 for details.
You mean in combination with e.g. |
The latter. |
After skimming through the code I believe further synchronization is necessary to avoid lost updates or other concurrency issues.