Electronics and Software
Engineering Innovation
Beam-lib  2.15.1

#include <BTask.h>

Public Member Functions

 BTask (const char *name="", BUInt stackSize=0, BUInt priority=1)
 
 ~BTask ()
 
void init (const char *name, BUInt stackSize=0, BUInt priority=1)
 
BError start ()
 Starts the task running. More...
 
void stop ()
 
void waitForCompletion ()
 
int setPriority (BUInt priority)
 Set the priority of the task: 0 upwards. More...
 
virtual void run ()
 

Static Protected Member Functions

static void * taskFunc (void *)
 

Protected Attributes

const char * oname
 
BUInt ostackSize
 
BUInt opolicy
 
BUInt opriority
 
pthread_t othread
 
Bool orunning
 

Constructor & Destructor Documentation

◆ BTask()

BTask::BTask ( const char *  name = "",
BUInt  stackSize = 0,
BUInt  priority = 1 
)

◆ ~BTask()

BTask::~BTask ( )

Member Function Documentation

◆ init()

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

◆ run()

void BTask::run ( )
virtual

◆ setPriority()

int BTask::setPriority ( BUInt  priority)

Set the priority of the task: 0 upwards.

◆ start()

BError BTask::start ( )

Starts the task running.

◆ stop()

void BTask::stop ( )

◆ taskFunc()

void * BTask::taskFunc ( void *  arg)
staticprotected

◆ waitForCompletion()

void BTask::waitForCompletion ( )

Member Data Documentation

◆ oname

const char* BTask::oname
protected

◆ opolicy

BUInt BTask::opolicy
protected

◆ opriority

BUInt BTask::opriority
protected

◆ orunning

Bool BTask::orunning
protected

◆ ostackSize

BUInt BTask::ostackSize
protected

◆ othread

pthread_t BTask::othread
protected

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