diff options
Diffstat (limited to 'lib/std/event/loop.zig')
| -rw-r--r-- | lib/std/event/loop.zig | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig index 8ef5f1d8e4..cbaa156d0e 100644 --- a/lib/std/event/loop.zig +++ b/lib/std/event/loop.zig @@ -616,14 +616,16 @@ pub const Loop = struct { self.workerRun(); - switch (builtin.os.tag) { - .linux, - .macosx, - .freebsd, - .netbsd, - .dragonfly, - => self.fs_thread.wait(), - else => {}, + if (!builtin.single_threaded) { + switch (builtin.os.tag) { + .linux, + .macosx, + .freebsd, + .netbsd, + .dragonfly, + => self.fs_thread.wait(), + else => {}, + } } for (self.extra_threads) |extra_thread| { |
