Pico-Arduino
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
pico_arduino::Thread Class Reference

Adds support for running code on the second processor core (core1) More...

#include <PicoThread.h>

Public Member Functions

bool isRunning ()
 check if the core1 has been started and is not stoped
 
bool start (ThreadCB callback, void *ptr=nullptr)
 Run code on core 1 - we can pass a reference to an object which will be given to the callback as argument.
 
void stop ()
 resets the core 1
 

Static Public Member Functions

static void callback_handler ()
 

Protected Member Functions

bool started (int flag=-1)
 

Static Protected Member Functions

static ThreadCB staticCallback (ThreadCB cb=nullptr)
 
static void * staticPtr (void *ptr=nullptr)
 

Detailed Description

Adds support for running code on the second processor core (core1)

Author
Phil Schatzmann

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