diff options
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index f2c736bbba..5600990924 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -278,11 +278,11 @@ pub fn panicExtra(trace: ?*const builtin.StackTrace, first_trace_addr: ?usize, c // Another thread is panicking, wait for the last one to finish // and call abort() - // Here we sleep forever without hammering the CPU by causing a - // deadlock - var deadlock = std.Mutex.init(); - _ = deadlock.acquire(); - _ = deadlock.acquire(); + // Sleep forever without hammering the CPU + var event = std.ResetEvent.init(); + event.wait(); + + unreachable; } }, 1 => { |
