| 226 | ****************************************************************************/ |
| 227 | |
| 228 | static inline_function |
| 229 | bool work_remove(FAR struct kwork_wqueue_s *wqueue, |
| 230 | FAR struct work_s *work) |
| 231 | { |
| 232 | FAR struct work_s *head; |
| 233 | |
| 234 | head = list_first_entry(&wqueue->pending, struct work_s, node); |
| 235 | |
| 236 | /* Seize the ownership from the work thread. */ |
| 237 | |
| 238 | work->worker = NULL; |
| 239 | |
| 240 | list_delete(&work->node); |
| 241 | |
| 242 | return head == work; |
| 243 | } |
| 244 | |
| 245 | /**************************************************************************** |
| 246 | * Name: work_timer_expired |
no outgoing calls
no test coverage detected