| 271 | ****************************************************************************/ |
| 272 | |
| 273 | static inline_function |
| 274 | void work_timer_reset(FAR struct kwork_wqueue_s *wqueue) |
| 275 | { |
| 276 | if (!list_is_empty(&wqueue->pending)) |
| 277 | { |
| 278 | FAR struct work_s *work; |
| 279 | |
| 280 | work = list_first_entry(&wqueue->pending, struct work_s, node); |
| 281 | |
| 282 | wd_start_abstick(&wqueue->timer, work->qtime, |
| 283 | work_timer_expired, (wdparm_t)wqueue); |
| 284 | } |
| 285 | else |
| 286 | { |
| 287 | wd_cancel(&wqueue->timer); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | /**************************************************************************** |
| 292 | * Name: work_start_highpri |
no test coverage detected