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


   ## Summary
   
   sched/semaphore: fix race condition for timed wait
   
   There is a potential problem that can lead to deadlock at
   condition wait, if the timeout of watchdog is a very small value
   (less than 1ms ?), the timer interrupt will come before the nxsem_wait()
   
   Regression by:
   sched: semaphore: Remove a redundant critical section in nxsem_tickwait()
   sched: semaphore: Remove a redundant critical section in nxsem_clockwait()
   sched: pthread: Remove a redundant critical section in 
pthread_condclockwsait.c
   
   Signed-off-by: chao.an <[email protected]>
   
   ## Impact
   
   System stability
   
   ## Testing
   
   **_timedwait() with small timeout


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to