29#ifndef ETL_MUTEX_FREERTOS_INCLUDED
30#define ETL_MUTEX_FREERTOS_INCLUDED
32#include "../platform.h"
49 access = xSemaphoreCreateMutexStatic(&mutex_allocation);
54 xSemaphoreTake(access, portMAX_DELAY);
59 return xSemaphoreTake(access, 0) == pdTRUE;
64 xSemaphoreGive(access);
69 mutex(
const mutex&) ETL_DELETE;
70 mutex& operator=(
const mutex&) ETL_DELETE;
73 StaticSemaphore_t mutex_allocation;
76 SemaphoreHandle_t access;
bitset_ext
Definition absolute.h:38
std::mutex mutex
This mutex class is implemented using std::mutex.
Definition mutex_std.h:42