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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to