Donny9 opened a new pull request, #9007:
URL: https://github.com/apache/nuttx/pull/9007

   
   ## Summary
   sched/wqueue: fix issue about worker can't wake up thread before work_thread 
running_thread running
   
   Problem:
   AppBringup task in default priority 240 ->
   board_late_initialize() ->
      some driver called work_queue() ->
         nxsem_post(&(wqueue).sem) failed because sem_count is 0
   
   hp work_thread in default priority 224 ->
         nxsem_wait_uninterruptible(&wqueue->sem);
   
   so hp_work_thread can't wake up, worker can't run immediately.
   
   Signed-off-by: dongjiuzhu1 <dongjiuz...@xiaomi.com>
   ## Impact
   start work queue at board_late_initialize step.
   ## Testing
   local test
   


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