summaryrefslogtreecommitdiff
path: root/py/scheduler.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-04-03 14:07:34 +1100
committerDamien George <damien.p.george@gmail.com>2020-04-13 21:44:09 +1000
commitc2cfbcc8d491d225cddbce71de5052ba8048c121 (patch)
tree6264ead6926e7d14d1cbdbe52b8f5033da687450 /py/scheduler.c
parent45cf76465c5fae8349aa65b78328d38ecab7308d (diff)
unix: Implement MICROPY_BEGIN/END_ATOMIC_SECTION protection macros.
This macro is used to implement global serialisation, typically by disabling IRQs. On the unix port, if threading is enabled, use the existing thread mutex (that protects the thread list structure) for this purpose. Other places in the code (eg the scheduler) assume this macro will provide serialisation.
Diffstat (limited to 'py/scheduler.c')
0 files changed, 0 insertions, 0 deletions