Skip to content

Conversation

@arihant2math
Copy link
Collaborator

No description provided.


for thr_weak in process.threads.lock_save_irq().values() {
if let Some(thr) = thr_weak.upgrade() {
*thr.state.lock_save_irq() = TaskState::Sleeping;
Copy link
Owner

Choose a reason for hiding this comment

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

Might be worth having another state here - Stopped? The reason being is that any pending wakers targetting this task will wake up a Sleeping task. If we use Stopped, wakers won't spuriously wake the task back up.

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