aboutsummaryrefslogtreecommitdiff
path: root/tests/thread
diff options
context:
space:
mode:
authorJim Mussared2020-04-03 14:07:34 +1100
committerDamien George2020-04-13 21:44:09 +1000
commitc2cfbcc8d491d225cddbce71de5052ba8048c121 (patch)
tree6264ead6926e7d14d1cbdbe52b8f5033da687450 /tests/thread
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 'tests/thread')
0 files changed, 0 insertions, 0 deletions