User workqueue, cosmetic changes

This commit is contained in:
Gregory Nutt 2015-09-30 14:03:55 -06:00
parent ff67c0765a
commit a813baef0a
2 changed files with 6 additions and 4 deletions

View File

@ -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 */ /* 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.flink != NULL ||
DEBUGASSERT(work->dq.blink || (FAR dq_entry_t *)work == wqueue->q.head); (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 /* 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); dq_rem((FAR dq_entry_t *)work, &wqueue->q);

View File

@ -115,7 +115,7 @@ static int work_qcancel(FAR struct kwork_wqueue_s *wqueue,
(FAR dq_entry_t *)work == wqueue->q.head); (FAR dq_entry_t *)work == wqueue->q.head);
/* Remove the entry from the work queue and make sure that it is /* 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); dq_rem((FAR dq_entry_t *)work, &wqueue->q);