PropWare  3.0.0.224
C++ objects and CMake build system for Parallax Propeller
Public Member Functions | Static Public Member Functions | List of all members
TalkingThread Class Reference
+ Inheritance diagram for TalkingThread:
+ Collaboration diagram for TalkingThread:

Public Member Functions

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.
 

Static Public Member Functions

template<class T >
static int8_t invoke (T &runnable)
 Start a new cog running the given object. More...
 

Detailed Description

Examples
Runnable_Demo.cpp.

Definition at line 15 of file Runnable_Demo.cpp.

Member Function Documentation

◆ invoke()

template<class T >
static int8_t PropWare::Runnable::invoke ( T runnable)
staticinherited

Start a new cog running the given object.

Parameters
[in]runnableObject 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.

+ Here is the call graph for this function:

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