40#include "freertos-config.h"
52#ifndef CPP_FREERTOS_NO_EXCEPTIONS
56#ifdef CPP_FREERTOS_NO_CPP_STRINGS
57#error "FreeRTOS-Addons require C++ Strings if you are using exceptions"
67#ifndef CPP_FREERTOS_NO_EXCEPTIONS
79 sprintf(errorString,
"Semaphore Constructor Failed");
87 snprintf(errorString,
sizeof(errorString),
88 "Semaphore Constructor Failed %s", info);
95 virtual const char *
what()
const throw()
104 char errorString[80];
141 bool Take(TickType_t Timeout = portMAX_DELAY);
157 bool TakeFromISR(BaseType_t *pxHigherPriorityTaskWoken);
166 bool GiveFromISR(BaseType_t *pxHigherPriorityTaskWoken);
Definition: semaphore.hpp:196
Definition: semaphore.hpp:218
Definition: semaphore.hpp:71
SemaphoreCreateException(const char *info)
Definition: semaphore.hpp:85
SemaphoreCreateException()
Definition: semaphore.hpp:77
virtual const char * what() const
Definition: semaphore.hpp:95
Definition: semaphore.hpp:121
bool GiveFromISR(BaseType_t *pxHigherPriorityTaskWoken)
Definition: csemaphore.cpp:76
SemaphoreHandle_t handle
Definition: semaphore.hpp:183
virtual ~Semaphore()
Definition: csemaphore.cpp:91
bool TakeFromISR(BaseType_t *pxHigherPriorityTaskWoken)
Definition: csemaphore.cpp:56
bool Give()
Definition: csemaphore.cpp:66
Semaphore()
Definition: csemaphore.cpp:86
bool Take(TickType_t Timeout=portMAX_DELAY)
Definition: csemaphore.cpp:46
Definition: condition_variable.hpp:57