(fd: i32, thread_id: u64, is_current: bool)
| 215 | // write_thread_id (traceback.c:1240-1256) |
| 216 | #[cfg(any(unix, windows))] |
| 217 | fn write_thread_id(fd: i32, thread_id: u64, is_current: bool) { |
| 218 | if is_current { |
| 219 | puts(fd, "Current thread "); |
| 220 | } else { |
| 221 | puts(fd, "Thread "); |
| 222 | } |
| 223 | dump_hexadecimal(fd, thread_id, core::mem::size_of::<usize>() * 2); |
| 224 | puts(fd, " (most recent call first):\n"); |
| 225 | } |
| 226 | |
| 227 | /// Dump the current thread's live frame chain to fd (signal-safe). |
| 228 | /// Walks the `Frame.previous` pointer chain starting from the |
no test coverage detected