Hi, all: I submitted a PR regarding mutex, the changes are as follows: 1. Move some mutex operations to sched;2. Add mutex_clocklock, mutex_set_protocol, and mutex_get_protocol interfaces;3. Remove cancellation point operations in mutex because it is not a cancellation point.
In addition, there will be a series of modifications based on this PR in the future. 1. pthread mutex is changed to depend on nxmutex instead of nxsem; 2. nxmutex no longer depends on nxsem and is implemented independently; 3. Move priority inheritance from nxsem to nxmutex, and optimize the performance of priority inheritance; If there are any issues with this modification, please inform me, thanks! PR: https://github.com/apache/nuttx/pull/8645 BR