| ... | @@ -616,14 +616,16 @@ pub const Loop = struct { | ... | @@ -616,14 +616,16 @@ pub const Loop = struct { |
| 616 | | 616 | |
| 617 | self.workerRun(); | 617 | self.workerRun(); |
| 618 | | 618 | |
| 619 | switch (builtin.os.tag) { | 619 | if (!builtin.single_threaded) { |
| 620 | .linux, | 620 | switch (builtin.os.tag) { |
| 621 | .macosx, | 621 | .linux, |
| 622 | .freebsd, | 622 | .macosx, |
| 623 | .netbsd, | 623 | .freebsd, |
| 624 | .dragonfly, | 624 | .netbsd, |
| 625 | => self.fs_thread.wait(), | 625 | .dragonfly, |
| 626 | else => {}, | 626 | => self.fs_thread.wait(), |
| | 627 | else => {}, |
| | 628 | } |
| 627 | } | 629 | } |
| 628 | | 630 | |
| 629 | for (self.extra_threads) |extra_thread| { | 631 | for (self.extra_threads) |extra_thread| { |