RTX5: minor optimization in mutex priority inversion
@@ -82,6 +82,7 @@ void osRtxMutexOwnerRestore (const os_mutex_t *mutex, const os_thread_t *thread_
int8_t priority;
// Restore owner Thread priority
+ if ((mutex->attr & osMutexPrioInherit) != 0U) {
thread = mutex->owner_thread;
priority = thread->priority_base;
mutex0 = thread->mutex_list;
@@ -106,6 +107,7 @@ void osRtxMutexOwnerRestore (const os_mutex_t *mutex, const os_thread_t *thread_
osRtxThreadListSort(thread);
}
}
+}
// ==== Service Calls ====
