chore: make use of std.atomic.spinLoopHint()

This commit is contained in:
2023-05-23 02:42:35 -05:00
parent d9e09a9cbe
commit a048263fd6
2 changed files with 7 additions and 1 deletions

View File

@@ -216,6 +216,7 @@ pub const Gui = struct {
.Standard => blk: {
const limit = 15; // TODO: What should this be?
// TODO: learn more about std.atomic.spinLoopHint();
for (0..limit) |_| {
const message = channel.gui.pop() orelse continue;