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

This commit is contained in:
2022-01-05 17:34:42 -05:00
parent 5037b8f0cc
commit f709458638
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,
};