feat(sched): add HBlank and VBlank events to the scheduler

This commit is contained in:
2022-10-21 05:11:49 -03:00
parent d495f5b4c5
commit d54c8df7b3
6 changed files with 25 additions and 13 deletions

View File

@@ -35,6 +35,12 @@ pub const Scheduler = struct {
.HeatDeath => {
std.debug.panic("[Scheduler] Somehow, a u64 overflowed", .{});
},
.HBlank => {
std.debug.panic("[Scheduler] tick {}: Hblank", .{self.tick});
},
.VBlank => {
std.debug.panic("[Scheduler] tick {}: VBlank", .{self.tick});
},
}
}
}
@@ -57,4 +63,6 @@ fn lessThan(_: void, a: Event, b: Event) Order {
pub const EventKind = enum {
HeatDeath,
HBlank,
VBlank,
};