| 259 | |
| 260 | |
| 261 | static inline void insert_gen_timer_unsafe(struct dlg_timer *timer, struct dlg_tl *tl) |
| 262 | { |
| 263 | struct dlg_tl* ptr; |
| 264 | |
| 265 | #ifdef EXTRA_DEBUG |
| 266 | debug_gen_timer_list( timer ); |
| 267 | #endif |
| 268 | |
| 269 | for(ptr = timer->first.prev; ptr != &(timer->first) ; ptr = ptr->prev) { |
| 270 | if ( ptr->timeout <= tl->timeout ) |
| 271 | break; |
| 272 | } |
| 273 | |
| 274 | LM_DBG("inserting %p for %d\n", tl,tl->timeout); |
| 275 | tl->prev = ptr; |
| 276 | tl->next = ptr->next; |
| 277 | tl->prev->next = tl; |
| 278 | tl->next->prev = tl; |
| 279 | |
| 280 | #ifdef EXTRA_DEBUG |
| 281 | debug_gen_timer_list( timer ); |
| 282 | #endif |
| 283 | } |
| 284 | |
| 285 | int insert_dlg_timer(struct dlg_tl *tl, int interval) |
| 286 | { |
no test coverage detected