40#include "freertos-config.h"
53#ifndef CPP_FREERTOS_NO_EXCEPTIONS
57#ifdef CPP_FREERTOS_NO_CPP_STRINGS
58#error "FreeRTOS-Addons require C++ Strings if you are using exceptions"
69#ifndef CPP_FREERTOS_NO_EXCEPTIONS
81 sprintf(errorString,
"Tasklet Constructor Failed");
89 snprintf(errorString,
sizeof(errorString),
90 "Tasklet Constructor Failed %s", info);
97 virtual const char *
what()
const throw()
106 char errorString[80];
153 TickType_t CmdTimeout = portMAX_DELAY);
167 BaseType_t *pxHigherPriorityTaskWoken);
185 virtual void Run(uint32_t parameter) = 0;
206 static void TaskletAdapterFunction(
void *ref, uint32_t parameter);
211 SemaphoreHandle_t DtorLock;
Definition: tasklet.hpp:73
TaskletCreateException()
Definition: tasklet.hpp:79
virtual const char * what() const
Definition: tasklet.hpp:97
TaskletCreateException(const char *info)
Definition: tasklet.hpp:87
Definition: tasklet.hpp:121
virtual ~Tasklet()
Definition: ctasklet.cpp:62
bool ScheduleFromISR(uint32_t parameter, BaseType_t *pxHigherPriorityTaskWoken)
Definition: ctasklet.cpp:104
virtual void Run(uint32_t parameter)=0
bool Schedule(uint32_t parameter, TickType_t CmdTimeout=portMAX_DELAY)
Definition: ctasklet.cpp:82
void CheckForSafeDelete()
Definition: ctasklet.cpp:67
Tasklet()
Definition: ctasklet.cpp:46
Definition: condition_variable.hpp:57