-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
refactor(GameScheduler): provide ThreadMonitor-compatible schedule method #4839
Merged
keturn
merged 8 commits into
refactor/remove-usage-ThreadManagerSubsystem
from
refactor/remove-usage-ThreadManagerSubsystem-2
Aug 10, 2021
Merged
refactor(GameScheduler): provide ThreadMonitor-compatible schedule method #4839
keturn
merged 8 commits into
refactor/remove-usage-ThreadManagerSubsystem
from
refactor/remove-usage-ThreadManagerSubsystem-2
Aug 10, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
Type: Refactoring
Request for or implementation of pure and automatic refactorings, e.g. renaming, to improve clarity
label
Aug 10, 2021
keturn
added
the
Topic: Concurrency
Requests, issues, and changes relating to threading, concurrency, parallel execution, etc.
label
Aug 10, 2021
pollend
reviewed
Aug 10, 2021
Comment on lines
103
to
+112
|
||
Runnable task; | ||
if (savingGamePreview) { | ||
GameScheduler.parallel().schedule(() -> saveGamePreviewTask(buffer, width, height)); | ||
task = () -> saveGamePreviewTask(buffer, width, height); | ||
this.savingGamePreview = false; | ||
} else { | ||
GameScheduler.parallel().schedule(() -> saveScreenshotTask(buffer, width, height)); | ||
task = () -> saveScreenshotTask(buffer, width, height); | ||
} | ||
|
||
GameScheduler.scheduleParallel("Write screenshot", task); |
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.
would probably still opt to just use two calls to scheduleParallel
. no need to be clever.
pollend
approved these changes
Aug 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Topic: Concurrency
Requests, issues, and changes relating to threading, concurrency, parallel execution, etc.
Type: Refactoring
Request for or implementation of pure and automatic refactorings, e.g. renaming, to improve clarity
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a proposal in hopes of moving us past the controversial point on #4799. It targets that PR's branch.
This is not a rejection of micrometer. Using micrometer instead of some of our homegrown meters is a welcome plan! But I don't think we need to do it in that PR.