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

Fixed multithreading for good #145

Merged
merged 15 commits into from
Jul 9, 2022
Merged

Conversation

ohlidalp
Copy link
Member

@ohlidalp ohlidalp commented May 20, 2022

A distillation of #143 without changes to RoRnet.

Update: This evolved into full-scale audit of thread safety. First I noticed the 'queue client for disconnect' function isn't safe to invoke outside Sequencer, then I discovered many others suffering the same issue.

Update 2: Additionally, I found out the frameStep() script callback wasn't synchronized with the rest of the server.

@ohlidalp ohlidalp force-pushed the tired-of-crashes branch 4 times, most recently from 0f7d499 to 03183ce Compare May 23, 2022 23:00
@ohlidalp ohlidalp changed the title Stability improvements Fixed multithreading for good May 23, 2022
@ohlidalp ohlidalp marked this pull request as ready for review May 23, 2022 23:10
@ohlidalp ohlidalp force-pushed the tired-of-crashes branch 2 times, most recently from d96227d to b7db3dd Compare May 24, 2022 22:40
Copy link
Collaborator

@tritonas00 tritonas00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems to work as expected. Applied the PR to VPS and waiting for results.

@ohlidalp ohlidalp merged commit 09f325d into RigsOfRods:master Jul 9, 2022
@ohlidalp ohlidalp deleted the tired-of-crashes branch July 9, 2022 15:52
@ohlidalp ohlidalp mentioned this pull request Jul 9, 2022
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.

2 participants