Skip to content

Commit

Permalink
Use normal mutex instead of recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Dec 7, 2024
1 parent 175c9a5 commit ba96a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/freertos_plus_tcp/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ z_result_t _z_condvar_init(_z_condvar_t *cv) {
}

#if (configSUPPORT_STATIC_ALLOCATION == 1)
cv->mutex = xSemaphoreCreateRecursiveMutexStatic(&cv->mutex_buffer);
cv->mutex = xSemaphoreCreateMutexStatic(&cv->mutex_buffer);
cv->sem = xSemaphoreCreateCountingStatic((UBaseType_t)(~0), 0, &cv->sem_buffer);
#else
cv->mutex = xSemaphoreCreateMutex();
Expand Down

0 comments on commit ba96a81

Please sign in to comment.