ke: scheduler overhaul

This commit is contained in:
Loïc Grégoire
2026-08-19 18:04:12 -04:00
parent f78d10b62e
commit ee0c6aad67
13 changed files with 896 additions and 733 deletions
+2 -2
View File
@@ -154,12 +154,12 @@ fn particle(param: ?*anyopaque) void {
}
fn spawn_particle(arg: ?*anyopaque) void {
const t = ps.thread.create_kernel(ke.Thread.Priority.default, &particle, arg) catch @panic("OOM");
const t = ps.thread.create_kernel(.Default, &particle, arg) catch @panic("OOM");
ke.sched.enqueue(&t.kern);
}
fn spawn_explodeable() void {
const t = ps.thread.create_kernel(ke.Thread.Priority.default, &explodeable, null) catch @panic("OOM");
const t = ps.thread.create_kernel(.Default, &explodeable, null) catch @panic("OOM");
ke.sched.enqueue(&t.kern);
}