|
|
template<size_t N> |
| | TalkingThread (const uint32_t(&stack)[N]) |
| |
|
void | run () |
| | Invoked in the new cog, this method should be the root of the business logic.
|
| |
|
| template<class T > |
| static int8_t | invoke (T &runnable) |
| | Start a new cog running the given object. More...
|
| |
- Examples
- Runnable_Demo.cpp.
Definition at line 15 of file Runnable_Demo.cpp.
◆ invoke()
template<class T >
| static int8_t PropWare::Runnable::invoke |
( |
T & |
runnable | ) |
|
|
staticinherited |
Start a new cog running the given object.
- Parameters
-
| [in] | runnable | Object that should be invoked in a new cog |
- Returns
- If the cog was successfully started, the new cog ID is returned. Otherwise, -1 is returned
Definition at line 85 of file runnable.h.
The documentation for this class was generated from the following file: