LibPkg
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
pkg::thread Class Reference

A mixin class to represent a cooperative thread. More...

#include <thread.h>

Inheritance diagram for pkg::thread:
pkg::commit pkg::unpack pkg::update

Public Member Functions

 thread ()
 Construct thread. More...
 
virtual ~thread ()
 Destroy thread. More...
 

Static Public Member Functions

static void poll_all ()
 Poll all threads. More...
 

Protected Member Functions

virtual void poll ()
 Poll this thread. More...
 

Detailed Description

A mixin class to represent a cooperative thread.

Constructor & Destructor Documentation

pkg::thread::thread ( )

Construct thread.

pkg::thread::~thread ( )
virtual

Destroy thread.

Member Function Documentation

void pkg::thread::poll ( )
protectedvirtual

Poll this thread.

This function will be called repeatedly until the thread ceases to exist. The amount of work done per invokation should be kept small, in order that multithreading (within the application) and multitasking (across RISC OS as a whole) operate smoothly.

Reimplemented in pkg::unpack, pkg::commit, and pkg::update.

void pkg::thread::poll_all ( )
static

Poll all threads.

Call the poll() method for all threads currently in existance.


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

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)