esp-idf, mutex and semaphore
Posted: Fri Jan 17, 2020 9:38 am
by mrdebug
Hi, in esp-idf is there difference between mutex and semaphore?
Thanks.
Re: esp-idf, mutex and semaphore
Posted: Fri Jan 17, 2020 3:12 pm
by ESP_igrr
In FreeRTOS the main difference between the two is priority inheritance for mutexes. Also it is not allowed to release a mutex from the task other than the one where it was acquired.
https://www.freertos.org/Real-time-embe ... texes.html