Context switch correctly in UserInner::call.

This commit is contained in:
4lDO2
2023-11-30 19:19:01 +01:00
parent 6b642d62a6
commit d531c6f1bf
+4 -4
View File
@@ -141,11 +141,11 @@ impl UserInner {
self.todo.send(packet);
event::trigger(self.root_id, self.handle_id, EVENT_READ);
unsafe {
context::switch();
}
loop {
unsafe {
context::switch();
}
let mut states = self.states.lock();
match states.entry(id) {
// invalid state