| ... | @@ -3171,11 +3171,8 @@ pub fn dn_expand( | ... | @@ -3171,11 +3171,8 @@ pub fn dn_expand( |
| 3171 | } | 3171 | } |
| 3172 | | 3172 | |
| 3173 | pub fn sched_yield() void { | 3173 | pub fn sched_yield() void { |
| 3174 | if (builtin.os == .windows) { | 3174 | switch (builtin.os) { |
| 3175 | _ = windows.kernel32.SwitchToThread(); | 3175 | .windows => _ = windows.kernel32.SwitchToThread(), |
| 3176 | } else if (builtin.os == .linux and !builtin.link_libc) { | 3176 | else => assert(system.sched_yield() == 0), |
| 3177 | assert(linux.sched_yield() == 0); | | |
| 3178 | } else if (builtin.link_libc) { | | |
| 3179 | assert(std.c.sched_yield() == 0); | | |
| 3180 | } | 3177 | } |
| 3181 | } | 3178 | } |