scheduler: Minor bug fix
This commit is contained in:
+1
-1
@@ -335,7 +335,7 @@ pub fn wait(self: *Scheduler, ids: []const TaskID) !TaskID {
|
|||||||
return c.id;
|
return c.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
const task = self.findTaskByID(self.current_id.?);
|
const task = self.findTaskByID(self.current_id.?).?;
|
||||||
task.state = .blocked;
|
task.state = .blocked;
|
||||||
task.wakeup_time = null;
|
task.wakeup_time = null;
|
||||||
task.wakeup_tasks = ids;
|
task.wakeup_tasks = ids;
|
||||||
|
|||||||
Reference in New Issue
Block a user