![]() |
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Helper class for creating easy parallel applications. More...
#include <PropWare/concurrent/runnable.h>
Public Member Functions | |
virtual void | run ()=0 |
Invoked in the new cog, this method should be the root of the business logic. | |
Static Public Member Functions | |
template<class T > | |
static int8_t | invoke (T &runnable) |
Start a new cog running the given object. More... | |
Helper class for creating easy parallel applications.
To create a Runnable instance which will blink an LED, try the simple example below:
Definition at line 75 of file runnable.h.
|
static |
Start a new cog running the given object.
[in] | runnable | Object that should be invoked in a new cog |
Definition at line 85 of file runnable.h.