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

Public Member Functions

template<size_t N>
 BlinkingThread (const uint32_t(&stack)[N], const Pin::Mask mask)
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


Definition at line 30 of file Runnable_Demo.cpp.

Member Function Documentation

◆ invoke()

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

Start a new cog running the given object.

[in]runnableObject that should be invoked in a new cog
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: