Browse Source
Because the atomic section starts after checking whether the scheduler state is pending, it's possible it can become a different state by the time the atomic section starts. This is especially likely on ports where MICROPY_BEGIN_ATOMIC_SECTION is implemented with a mutex (i.e. it might block), but the race exists regardless, i.e. if a context switch occurs between those two lines.pull/5890/head
Jim Mussared
5 years ago
committed by
Damien George
2 changed files with 29 additions and 19 deletions
Loading…
Reference in new issue