| 2011 | } |
| 2012 | |
| 2013 | staticfn void |
| 2014 | print_queue(winid win, timer_element *base) |
| 2015 | { |
| 2016 | timer_element *curr; |
| 2017 | char buf[BUFSZ]; |
| 2018 | |
| 2019 | if (!base) { |
| 2020 | putstr(win, 0, " <empty>"); |
| 2021 | } else { |
| 2022 | putstr(win, 0, "timeout id kind call"); |
| 2023 | for (curr = base; curr; curr = curr->next) { |
| 2024 | #ifdef VERBOSE_TIMER |
| 2025 | Sprintf(buf, " %4ld %4ld %-6s %s(%s)", curr->timeout, |
| 2026 | (long) curr->tid, kind_name(curr->kind), |
| 2027 | timeout_funcs[curr->func_index].name, |
| 2028 | fmt_ptr((genericptr_t) curr->arg.a_void)); |
| 2029 | #else |
| 2030 | Sprintf(buf, " %4ld %4ld %-6s #%d(%s)", curr->timeout, |
| 2031 | curr->tid, kind_name(curr->kind), curr->func_index, |
| 2032 | fmt_ptr((genericptr_t) curr->arg.a_void)); |
| 2033 | #endif |
| 2034 | putstr(win, 0, buf); |
| 2035 | } |
| 2036 | } |
| 2037 | } |
| 2038 | |
| 2039 | /* the #timeout command */ |
| 2040 | int |
no test coverage detected