| author | |
| committer | |
| log | 4dbfc48ab3adee68ccb354b80f787a4d42a72c24 |
| tree | 375aefcca0a2b19db74e1c8aecb552c6a81da354 |
| parent | c9db420a09ad894c1e521d1bdf1c99a3424aa9a6 |
1 files changed, 4 insertions(+), 1 deletions(-)
lib/std/spinlock.zig+4-1| ... | ... | @@ -31,7 +31,10 @@ pub const SpinLock = struct { |
| 31 | 31 | pub fn yieldCpu() void { |
| 32 | 32 | switch (builtin.arch) { |
| 33 | 33 | .i386, .x86_64 => asm volatile("pause" ::: "memory"), |
| 34 | .arm, .aarch64 => asm volatile("yield"), | |
| 34 | // .arm, .aarch64 => asm volatile("yield"), | |
| 35 | // | |
| 36 | // Causes CI to fail | |
| 37 | // See: https://github.com/ziglang/zig/pull/3585#issuecomment-549962765 | |
| 35 | 38 | else => time.sleep(0), |
| 36 | 39 | } |
| 37 | 40 | } |