MCPcopy Create free account
hub / github.com/apache/nuttx / work_remove

Function work_remove

sched/wqueue/wqueue.h:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 ****************************************************************************/
227
228static inline_function
229bool 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

Callers 2

work_qcancelFunction · 0.85
work_queue_wqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected