picofuse

Macros | Typedefs
thread.h File Reference

Defines thread creation, core query, and sleep primitives. More...

#include <stdbool.h>
#include <stdint.h>
Include dependency graph for thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYS_THREAD_CAPACITY   16
 Maximum number of concurrently active thread contexts in static-pool implementations.
 

Typedefs

typedef void(* sys_thread_func_t) (void *arg)
 Thread function signatureFunction signature for thread entry points. More...
 

Functions

Methods
uint8_t sys_thread_numcores (void)
 Returns the number of CPU cores available on the host system. More...
 
bool sys_thread_create (sys_thread_func_t func, void *arg)
 Create a thread on any available core. More...
 
bool sys_thread_create_on_core (sys_thread_func_t func, void *arg, uint8_t core)
 Create a thread on a specific core. More...
 
uint8_t sys_thread_core (void)
 Get the CPU core number the current thread is running on. More...
 

Detailed Description

Defines thread creation, core query, and sleep primitives.

Definition in file thread.h.