perf: Use FreeRTOS mutex instead of binary semaphore (#3935)
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ extern "C++" {
|
||||
|
||||
static inline void _RTOS_CREATE_MUTEX(RTOS_MUTEX_HANDLE* h)
|
||||
{
|
||||
h->rtos_handle = xSemaphoreCreateBinaryStatic(&h->mutex_struct);
|
||||
h->rtos_handle = xSemaphoreCreateMutexStatic(&h->mutex_struct);
|
||||
xSemaphoreGive(h->rtos_handle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user