fix crash in single-threaded builds
parent
79bf4003da
commit
a78ac96134
|
@ -616,14 +616,16 @@ pub const Loop = struct {
|
||||||
|
|
||||||
self.workerRun();
|
self.workerRun();
|
||||||
|
|
||||||
switch (builtin.os.tag) {
|
if (!builtin.single_threaded) {
|
||||||
.linux,
|
switch (builtin.os.tag) {
|
||||||
.macosx,
|
.linux,
|
||||||
.freebsd,
|
.macosx,
|
||||||
.netbsd,
|
.freebsd,
|
||||||
.dragonfly,
|
.netbsd,
|
||||||
=> self.fs_thread.wait(),
|
.dragonfly,
|
||||||
else => {},
|
=> self.fs_thread.wait(),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (self.extra_threads) |extra_thread| {
|
for (self.extra_threads) |extra_thread| {
|
||||||
|
|
Loading…
Reference in New Issue