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

Fix sharing of ThreadStatus #866

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

MitMaro
Copy link
Owner

@MitMaro MitMaro commented Jul 18, 2023

Application was creating two instances of Runtime, the first instance was only being used to create a ThreadStatus that was passed to Process. The second instance was the real Runtime, that would handle all the thread management and status tracking. The problem, was that Process had an incorrect copy of ThreadStatus, so the status checks Process performed were not completing. This resulted in things like the External Editor functionality stalling, when it was waiting for thread status updated.

This change creates a single instance of the ThreadStatus that is shared across the Process and Runtime.

Application was creating two instances of Runtime, the first instance
was only being used to create a ThreadStatus that was passed to Process.
The second instance was the real Runtime, that would handle all the
thread management and status tracking. The problem, was that Process had
an incorrect copy of ThreadStatus, so the status checks Process
performed were not completing. This resulted in things like the External
Editor functionality stalling, when it was waiting for thread status
updated.

This change creates a single instance of the ThreadStatus that is shared
across the Process and Runtime.
@MitMaro MitMaro self-assigned this Jul 18, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5592038523

  • 7 of 7 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 94.216%

Totals Coverage Status
Change from base Build 5592021786: -0.001%
Covered Lines: 4691
Relevant Lines: 4979

💛 - Coveralls

@MitMaro MitMaro merged commit 897c495 into master Jul 18, 2023
7 checks passed
@MitMaro MitMaro deleted the mitmaro/fix-runtime-status-passing branch July 18, 2023 23:31
@MitMaro MitMaro mentioned this pull request Jul 18, 2023
14 tasks
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

2 participants