aboutsummaryrefslogtreecommitdiff
path: root/src/ThreadPool.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ThreadPool.zig')
-rw-r--r--src/ThreadPool.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ThreadPool.zig b/src/ThreadPool.zig
index 1e91d3f731..ec580210e9 100644
--- a/src/ThreadPool.zig
+++ b/src/ThreadPool.zig
@@ -6,14 +6,14 @@
const std = @import("std");
const ThreadPool = @This();
-lock: std.Mutex = .{},
+lock: std.Thread.Mutex = .{},
is_running: bool = true,
allocator: *std.mem.Allocator,
workers: []Worker,
run_queue: RunQueue = .{},
idle_queue: IdleQueue = .{},
-const IdleQueue = std.SinglyLinkedList(std.ResetEvent);
+const IdleQueue = std.SinglyLinkedList(std.Thread.ResetEvent);
const RunQueue = std.SinglyLinkedList(Runnable);
const Runnable = struct {
runFn: fn (*Runnable) void,