User workqueue, cosmetic changes
This commit is contained in:
parent
ff67c0765a
commit
a813baef0a
|
@ -110,11 +110,13 @@ static int work_qcancel(FAR struct usr_wqueue_s *wqueue, FAR struct work_s *work
|
|||
{
|
||||
/* A little test of the integrity of the work queue */
|
||||
|
||||
DEBUGASSERT(work->dq.flink || (FAR dq_entry_t *)work == wqueue->q.tail);
|
||||
DEBUGASSERT(work->dq.blink || (FAR dq_entry_t *)work == wqueue->q.head);
|
||||
DEBUGASSERT(work->dq.flink != NULL ||
|
||||
(FAR dq_entry_t *)work == wqueue->q.tail);
|
||||
DEBUGASSERT(work->dq.blink != NULL ||i
|
||||
(FAR dq_entry_t *)work == wqueue->q.head);
|
||||
|
||||
/* Remove the entry from the work queue and make sure that it is
|
||||
* mark as available (i.e., the worker field is nullified).
|
||||
* marked as available (i.e., the worker field is nullified).
|
||||
*/
|
||||
|
||||
dq_rem((FAR dq_entry_t *)work, &wqueue->q);
|
||||
|
|
|
@ -115,7 +115,7 @@ static int work_qcancel(FAR struct kwork_wqueue_s *wqueue,
|
|||
(FAR dq_entry_t *)work == wqueue->q.head);
|
||||
|
||||
/* Remove the entry from the work queue and make sure that it is
|
||||
* mark as available (i.e., the worker field is nullified).
|
||||
* marked as available (i.e., the worker field is nullified).
|
||||
*/
|
||||
|
||||
dq_rem((FAR dq_entry_t *)work, &wqueue->q);
|
||||
|
|
Loading…
Reference in New Issue