jlaitine opened a new pull request #4779:
URL: https://github.com/apache/incubator-nuttx/pull/4779


   …rocess
   
   This fixes busylooping in work_usrthread, due to incorrect time spec given 
to sem_timedwait
   
   _SEM_TIMEDWAIT works on absolute time stamps, using CLOCK_REALTIME
   
   Signed-off-by: Jukka Laitinen <juk...@ssrc.tii.ae>
   
   ## Summary
   
   The implementation of sem_timedwait has changed in 33ec242caf3
   
   It calls  sem_clockwait(sem, CLOCK_REALTIME, abstime), which expects 
absolute time stamp for wakeup, using CLOCK_REALTIME.
   
   This patch provides the proper timespec in work_usrthread.
   
   ## Impact
   
   This fixes busylooping in work_usrthread; it never sleeps in the semaphore.
   
   ## Testing
   
   This has been tested on STM32F7 (Pixhawk 4 flight controller), using NuttX 
PROTECTED_BUILD.
   


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