Beamlib 3.3.2
This is the Beam C++ class library.
|
Implements a thread of execution. More...
#include <BTask.h>
Public Member Functions | |
BTask (const char *name="", BUInt stackSize=0, BUInt priority=1) | |
virtual | ~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 |
Implements a thread of execution.
|
virtual |
BError BTask::start | ( | ) |
Starts the task running.
void BTask::stop | ( | ) |
void BTask::waitForCompletion | ( | ) |
int BTask::setPriority | ( | BUInt | priority | ) |
Set the priority of the task: 0 upwards.
|
virtual |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |