Insert timer into the global queue */
| 2464 | |
| 2465 | /* Insert timer into the global queue */ |
| 2466 | staticfn void |
| 2467 | insert_timer(timer_element *gnu) |
| 2468 | { |
| 2469 | timer_element *curr, *prev; |
| 2470 | |
| 2471 | for (prev = 0, curr = gt.timer_base; curr; prev = curr, curr = curr->next) |
| 2472 | if (curr->timeout >= gnu->timeout) |
| 2473 | break; |
| 2474 | |
| 2475 | gnu->next = curr; |
| 2476 | if (prev) |
| 2477 | prev->next = gnu; |
| 2478 | else |
| 2479 | gt.timer_base = gnu; |
| 2480 | } |
| 2481 | |
| 2482 | staticfn timer_element * |
| 2483 | remove_timer( |
no outgoing calls
no test coverage detected