You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/01/22 16:27:27 UTC

[GitHub] [incubator-nuttx] patacongo commented on issue #143: kwork/notifier: initialize the work handler

patacongo commented on issue #143: kwork/notifier: initialize the work handler
URL: https://github.com/apache/incubator-nuttx/pull/143#issuecomment-577268895
 
 
   It really should not be necessary to memset() the whole structure.  It should be sufficient just to nullify the work.worker field.  That alone determines if the entry is 'valid' and nullifying that is sufficient to mark the entry as invlaid.  The other fields will be set when work_queue() is called and don't need to be cleared.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services