8000 kernel: process standard: stop in YieldedFor by bradjc · Pull Request #4039 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kernel: process standard: stop in YieldedFor #4039

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

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

bradjc
Copy link
Contributor
@bradjc bradjc commented Jun 19, 2024

Pull Request Overview

Using _ in a match burned us here. We wouldn't be able to stop a process while it is in the yield_for state.

This refactors the states to make this cleaner, and removes the _ match so future state changes will lead to errors unless those states are handled.

Also updated some comments in process.rs that had fallen slightly out of date.

Testing Strategy

I don't have an easy long-running yieldwaitfor to use to test this with, but it would be easy to test if we did.

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

Using `_` in a match burned us here. We wouldn't be able to stop a
process while it is in the yield_for state.

This refactors the states to make this cleaner, and removes the _ match
so future state changes will lead to errors unless those states are
handled.
@ppannuto ppannuto added the bug label Jun 19, 2024
@ppannuto ppannuto added this pull request to the merge queue Jun 19, 2024
Merged via the queue into master with commit 3ccfe29 Jun 20, 2024
18 checks passed
@ppannuto ppannuto deleted the kernel-stopped-states branch June 20, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0