Menu

Tree [8e0782] master 0.0.2 /
 History

HTTPS access


File Date Author Commit
 examples 2018-04-13 Vyacheslav Azarov Vyacheslav Azarov [067f29] Add files via upload
 LICENSE 2018-04-13 Vyacheslav Azarov Vyacheslav Azarov [4a4071] Initial commit
 README.md 2018-06-05 Vyacheslav Azarov Vyacheslav Azarov [ee1bff] Added suggestion for the instalation method
 Thread.c 2018-06-05 Vyacheslav Azarov Vyacheslav Azarov [459f83] Oh! Alaready fixed.
 Thread.h 2018-04-13 Vyacheslav Azarov Vyacheslav Azarov [067f29] Add files via upload
 library.properties 2018-06-05 Vyacheslav Azarov Vyacheslav Azarov [8e0782] Oh! Alaready fixed.

Read Me

Thread

It is simplest implementation of iterative multithredaing for AVR8 microcontrollers.
You can install this library by the library manager Arduino also.

Using

See example for how to.

functions

spawn(..) create new thread with function and unique stack resources

yield() switch execution to next thread immediately

hold() disable yield() and time division functionality

schedule() enable yield() functionality only (switching points)

quantize() enable time division of the execution flows and yield()

grab(..) implement mutual exclusion barrier lock (semaphore)

loose(.) unlock barrier what has been locked by grab(..) call

constant

MAIN pointer to dummy stack of the main root thread

variables

thread dynamic pointer on the process stack structure
what can be used for reentrant and identification

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.