minor code readability changes

This commit is contained in:
Andrew Kelley
2020-12-21 18:24:20 -07:00
parent f2ab9512af
commit b2e1bce240
2 changed files with 3 additions and 2 deletions

View File

@@ -105,12 +105,12 @@ fn runWorker(self: *ThreadPool) void {
if (self.is_running) {
var idle_node = IdleQueue.Node{ .data = std.ResetEvent.init() };
defer idle_node.data.deinit();
self.idle_queue.prepend(&idle_node);
held.release();
idle_node.data.wait();
idle_node.data.deinit();
continue;
}