| ... | ... | @@ -278,11 +278,11 @@ pub fn panicExtra(trace: ?*const builtin.StackTrace, first_trace_addr: ?usize, c |
| 278 | 278 | // Another thread is panicking, wait for the last one to finish |
| 279 | 279 | // and call abort() |
| 280 | 280 | |
| 281 | | // Here we sleep forever without hammering the CPU by causing a |
| 282 | | // deadlock |
| 283 | | var deadlock = std.Mutex.init(); |
| 284 | | _ = deadlock.acquire(); |
| 285 | | _ = deadlock.acquire(); |
| 281 | // Sleep forever without hammering the CPU |
| 282 | var event = std.ResetEvent.init(); |
| 283 | event.wait(); |
| 284 | |
| 285 | unreachable; |
| 286 | 286 | } |
| 287 | 287 | }, |
| 288 | 288 | 1 => { |