Switch over to the IO thread. A messy commit!

This commit is contained in:
Mitchell Hashimoto
2022-11-05 09:39:56 -07:00
parent 5cb6ebe34d
commit f2d9475d5d
3 changed files with 176 additions and 642 deletions

View File

@@ -162,7 +162,8 @@ fn drainMailbox(self: *Thread) !void {
log.debug("mailbox message={}", .{message});
switch (message) {
.resize => |v| try self.impl.resize(v.grid_size, v.screen_size),
.small_write => |v| try self.impl.queueWrite(v.data[0..v.len]),
.write_small => |v| try self.impl.queueWrite(v.data[0..v.len]),
.write_stable => |v| try self.impl.queueWrite(v),
}
}
}