xiaoxiang781216 commented on PR #13159:
URL: https://github.com/apache/nuttx/pull/13159#issuecomment-2309364353

   > @xiaoxiang781216 @GUIDINGLI Which use case would use dynamic workqueue? 
AUTOSAR Alarm?
   
   irq handler could delivery work to the private work queue which share the 
same priority. It's also useful and simple to let's driver create a work queue 
instead kernel thread directly in most case. Linux also has the similar design:
   https://www.kernel.org/doc/html/next/core-api/workqueue.html
   ```
   struct workqueue_struct *alloc_workqueue(const char *fmt, unsigned int 
flags, int max_active, ...);
   bool queue_work(struct workqueue_struct *wq, struct work_struct *work)
   bool schedule_work(struct work_struct *work)
   ```


-- 
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

Reply via email to