Account
ArmsysApi 0.12.18 |
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
BTask Class Reference
#include <BTask.h>
Inheritance diagram for BTask:
Public Member Functions | |
BTask (const char *name="", BUInt stackSize=1024, BUInt priority=1) | |
~BTask () | |
void | init (const char *name, BUInt stackSize=1024, BUInt priority=1) |
BError | start () |
Starts the task running. More... | |
void | stop () |
Stops the task. More... | |
void | setPriority (BUInt priority) |
Set the priority of the task: 0 upwards. More... | |
void | delayMs (BUInt ms) |
Delay for a time in ms. More... | |
virtual void | run () |
The tasks main run loop. More... | |
Static Public Member Functions | |
static void | runTasks () |
Main run tasks loop. More... | |
Protected Attributes | |
const char * | oname |
BUInt | ostackSize |
BUInt | opriority |
TaskHandle_t | otask |
Bool | orunning |
Constructor & Destructor Documentation
◆ BTask()
◆ ~BTask()
BTask::~BTask | ( | ) |
Member Function Documentation
◆ delayMs()
void BTask::delayMs | ( | BUInt | ms | ) |
Delay for a time in ms.
◆ init()
◆ run()
| virtual |
The tasks main run loop.
Reimplemented in BHttpServer, and BNetworkProcessTask.
◆ runTasks()
| static |
Main run tasks loop.
◆ setPriority()
void BTask::setPriority | ( | BUInt | priority | ) |
Set the priority of the task: 0 upwards.
◆ start()
BError BTask::start | ( | ) |
Starts the task running.
◆ stop()
void BTask::stop | ( | ) |
Stops the task.
Member Data Documentation
◆ oname
| protected |
◆ opriority
| protected |
◆ orunning
| protected |
◆ ostackSize
| protected |
◆ otask
| protected |
The documentation for this class was generated from the following files:
Generated by 1.8.15