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:
Angus Gratton
2019-03-13 13:15:34 +08:00
6 changed files with 47 additions and 2 deletions

View File

@@ -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();
}
}