LibPkg
|
A mixin class to represent a cooperative thread. More...
#include <thread.h>
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... | |
A mixin class to represent a cooperative thread.
pkg::thread::thread | ( | ) |
Construct thread.
|
virtual |
Destroy thread.
|
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.
|
static |
Poll all threads.
Call the poll() method for all threads currently in existance.
Reference Manual | LibPkg | Version 0.9.0 (4 Sep 2020) |