Simulator fixes

This commit is contained in:
Ken Van Hoeylandt 2026-01-22 22:16:34 +01:00
parent d9311a98e3
commit 3e0dd608da
3 changed files with 5 additions and 5 deletions

View File

@ -2,6 +2,7 @@
#include <Tactility/FreeRTOS/semphr.h> #include <Tactility/FreeRTOS/semphr.h>
#include <assert.h> #include <assert.h>
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1,8 +1,6 @@
#pragma once #pragma once
#include "freertos/semphr.h" #include <stdbool.h>
#include <Tactility/FreeRTOS/semphr.h> #include <Tactility/FreeRTOS/semphr.h>
#ifdef __cplusplus #ifdef __cplusplus
@ -20,6 +18,7 @@ inline static void recursive_mutex_construct(struct RecursiveMutex* mutex) {
inline static void recursive_mutex_destruct(struct RecursiveMutex* mutex) { inline static void recursive_mutex_destruct(struct RecursiveMutex* mutex) {
assert(mutex != NULL); assert(mutex != NULL);
assert(mutex->handle != NULL); assert(mutex->handle != NULL);
vPortAssertIfInISR();
vSemaphoreDelete(mutex->handle); vSemaphoreDelete(mutex->handle);
mutex->handle = NULL; mutex->handle = NULL;
} }

View File

@ -1,6 +1,6 @@
#include <sys/errno.h>
#include <vector>
#include <cstring> #include <cstring>
#include <ranges>
#include <vector>
#include <Tactility/concurrent/Mutex.h> #include <Tactility/concurrent/Mutex.h>
#include <Tactility/Device.h> #include <Tactility/Device.h>