|
FreeRTOS Addons
|
#include <workqueue.hpp>
Public Member Functions | |
| WorkQueue (const char *const Name, uint16_t StackDepth=DEFAULT_WORK_QUEUE_STACK_SIZE, UBaseType_t Priority=DEFAULT_WORK_QUEUE_PRIORITY, UBaseType_t MaxWorkItems=DEFAULT_MAX_WORK_ITEMS) | |
| WorkQueue (uint16_t StackDepth=DEFAULT_WORK_QUEUE_STACK_SIZE, UBaseType_t Priority=DEFAULT_WORK_QUEUE_PRIORITY, UBaseType_t MaxWorkItems=DEFAULT_MAX_WORK_ITEMS) | |
| ~WorkQueue () | |
| ~WorkQueue ()=delete | |
| bool | QueueWork (WorkItem *work) |
This class is the "engine" for WorkItems. Create one or more WorkQueues to accept WorkItems. WorkQueues pull WorkItems off of a FIFO queue and run them sequentially.
| WorkQueue::WorkQueue | ( | const char *const | Name, |
| uint16_t | StackDepth = DEFAULT_WORK_QUEUE_STACK_SIZE, |
||
| UBaseType_t | Priority = DEFAULT_WORK_QUEUE_PRIORITY, |
||
| UBaseType_t | MaxWorkItems = DEFAULT_MAX_WORK_ITEMS |
||
| ) |
Constructor to create a named WorkQueue.
| ThreadCreateException,QueueCreateException,SemaphoreCreateException |
| WorkQueue::WorkQueue | ( | uint16_t | StackDepth = DEFAULT_WORK_QUEUE_STACK_SIZE, |
| UBaseType_t | Priority = DEFAULT_WORK_QUEUE_PRIORITY, |
||
| UBaseType_t | MaxWorkItems = DEFAULT_MAX_WORK_ITEMS |
||
| ) |
Constructor to create an unnamed WorkQueue.
| ThreadCreateException,QueueCreateException,SemaphoreCreateException |
| WorkQueue::~WorkQueue | ( | ) |
Our destructor.
|
delete |
If we can't delete a task, it makes no sense to have a destructor.
| bool WorkQueue::QueueWork | ( | WorkItem * | work | ) |