ArmSys Support
ArmsysApi  0.12.18

#include <BTask.h>

Inheritance diagram for BTask:
BHttpServer BNetworkProcessTask

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 ( const char *  name = "",
BUInt  stackSize = 1024,
BUInt  priority = 1 
)

◆ ~BTask()

BTask::~BTask ( )

Member Function Documentation

◆ delayMs()

void BTask::delayMs ( BUInt  ms)

Delay for a time in ms.

◆ init()

void BTask::init ( const char *  name,
BUInt  stackSize = 1024,
BUInt  priority = 1 
)

◆ run()

void BTask::run ( )
virtual

The tasks main run loop.

Reimplemented in BHttpServer, and BNetworkProcessTask.

◆ runTasks()

void BTask::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

const char* BTask::oname
protected

◆ opriority

BUInt BTask::opriority
protected

◆ orunning

Bool BTask::orunning
protected

◆ ostackSize

BUInt BTask::ostackSize
protected

◆ otask

TaskHandle_t BTask::otask
protected

The documentation for this class was generated from the following files: