mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-22 17:02:25 +00:00
Merge branch 'feature/freertos_check_mutex_owner' into 'master'
freertos: check that mutex is released by owner task See merge request idf/esp-idf!4012
This commit is contained in:
@@ -66,8 +66,7 @@ void run_tasks(const char *task1_description, void (* task1_func)(void *), const
|
||||
|
||||
for (i=0; i<2; i++) {
|
||||
if((task1_func != NULL && i == 0) || (task2_func != NULL && i == 1)){
|
||||
exit_sema[i] = xSemaphoreCreateMutex();
|
||||
xSemaphoreTake(exit_sema[i], portMAX_DELAY);
|
||||
exit_sema[i] = xSemaphoreCreateBinary();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user