Fix-Point opened a new pull request, #16231: URL: https://github.com/apache/nuttx/pull/16231
## Summary This commit refactors the logic of workqueue processing delayed and periodic work, and changes the timer to be set in `work_thread`. The improvements of this change are as follows: - Fixed the memory reuse problem of the original periodic workqueue implementation. https://github.com/apache/nuttx/pull/15937#issuecomment-2808973151 - By removing the `wdog_s` structure in the `work_s` structure, the memory overhead of each `work_s` structure is reduced by about 30 bytes. - Set the timer for each workqueue instead of each work, which improves system performance. - Simplified the workqueue cancel logic. ## Impact This modification mainly affects modules that use workqueue, and may affect the timing of workqueue execution and cancel semantics. ## Testing `wqueue_test` tested on QEMU/x86_64. Periodical workqueue can work now. -- 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. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org