summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/help.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-31 13:59:53 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-31 18:42:35 +1100
commit882ec01e42227445a63f6d5b38cac14d8635f2ad (patch)
tree98abee9fe7fb1e3ecacc7f3b13f87de058e42624 /esp8266/help.c
parentbebb3a616006d7f31b52213133ed7fb7d89cdcef (diff)
downloadmicropython-882ec01e42227445a63f6d5b38cac14d8635f2ad.tar.gz
micropython-882ec01e42227445a63f6d5b38cac14d8635f2ad.zip
stmhal: Initial implementation of multithreading, currently disabled.
This patch brings the _thread module to stmhal/pyboard. There is a very simple round-robin thread scheduler, which is disabled if there is only one thread (for efficiency when threading is not used). The scheduler currently switches threads at a rate of 250Hz using the systick timer and the pend-SV interrupt. The GIL is disabled so one must be careful to use lock objects to prevent concurrent access of objects. The threading is disabled by default, one can enabled it with the config option MICROPY_PY_THREAD to test it out.
Diffstat (limited to 'esp8266/help.c')
0 files changed, 0 insertions, 0 deletions