mirror of
https://github.com/espressif/esp-idf
synced 2025-03-13 11:09:12 -04:00
Merge branch 'bugfix/backport_v4.0_fix_pthread_priority_inheritance' into 'release/v4.0'
bugfix/ pthread priority inheritance(backport v4.0) See merge request espressif/esp-idf!11256
This commit is contained in:
commit
ba4fc9c803
@ -593,6 +593,15 @@ int pthread_mutex_destroy(pthread_mutex_t *mutex)
|
|||||||
return EBUSY;
|
return EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mux->type == PTHREAD_MUTEX_RECURSIVE) {
|
||||||
|
res = xSemaphoreGiveRecursive(mux->sem);
|
||||||
|
} else {
|
||||||
|
res = xSemaphoreGive(mux->sem);
|
||||||
|
}
|
||||||
|
if (res != pdTRUE) {
|
||||||
|
assert(false && "Failed to release mutex!");
|
||||||
|
}
|
||||||
|
|
||||||
vSemaphoreDelete(mux->sem);
|
vSemaphoreDelete(mux->sem);
|
||||||
free(mux);
|
free(mux);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user