mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Revert "Revert "kernel: services: remember new thread if specified""
This reverts commit c72d67203a.
This commit is contained in:
parent
c72d67203a
commit
e39c186c4a
1 changed files with 3 additions and 1 deletions
|
|
@ -852,13 +852,15 @@ impl SystemServices {
|
|||
}
|
||||
}
|
||||
new.current_thread = new_tid as _;
|
||||
// println!(" -- picked thread {}", new_tid);
|
||||
klog!("picked thread ID {}", new_tid);
|
||||
} else if x & (1 << new_tid) == 0 {
|
||||
// println!(
|
||||
// "thread is {:?}, which is not valid for new thread {}",
|
||||
// new.state, new_tid
|
||||
// );
|
||||
return Err(xous_kernel::Error::ProcessNotFound);
|
||||
} else {
|
||||
new.current_thread = new_tid as _;
|
||||
}
|
||||
}
|
||||
ProcessState::Sleeping => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue