u7k4rs6 commented on PR #21719:
URL: https://github.com/apache/nuttx/pull/21719#issuecomment-7244761279

   Thanks for the detailed review @cederom! Updated:
   
   1. unlock checks too now, so unlocking a never-locked zeroed mutex returns 
EPERM and the mutex still works after. With the old version that unlock 
returned 0 and broke the mutex (log in the description).
   2. lazyinit copies around the holder word and only writes it with 
`atomic_set_release()` at the end.
   3-5. fixed the comment and the description, and added a note that trylock 
can sleep on first use.
   6. ran ostest on sim:smp, MUTEX_TYPES, MUTEX_UNSAFE, PI and robust configs, 
and on mps2-an500:knsh (protected, 32-bit) in QEMU. Logs are in the description.
   7. the commit references #20407 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: [email protected]

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

Reply via email to