mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 15:28:21 +00:00
ke: scheduler overhaul
This commit is contained in:
+1
-1
@@ -169,7 +169,7 @@ pub fn start(_: ?*anyopaque) void {
|
||||
is_parked[i] = .init(false);
|
||||
|
||||
const prio: u8 = @intCast(2 + (i * 5) % 29);
|
||||
const t = ps.thread.create_kernel(prio, &worker, @ptrFromInt(i + 1)) catch @panic("oom");
|
||||
const t = ps.thread.create_kernel(@enumFromInt(prio), &worker, @ptrFromInt(i + 1)) catch @panic("oom");
|
||||
tds[i] = t;
|
||||
ke.sched.enqueue(&t.kern);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user