summaryrefslogtreecommitdiffstatshomepage
path: root/tests/thread/thread_stdin.py
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-09-04 17:17:38 +1000
committerDamien George <damien@micropython.org>2024-09-19 13:17:01 +1000
commit52a593cdb14ed732b5580bbed39c0325815adedf (patch)
tree878202bdaacd2ab5cb106a1dda658620a7d6e5bc /tests/thread/thread_stdin.py
parent451ba1cf386a2a0874ea20ea593dd6a009ede011 (diff)
downloadmicropython-52a593cdb14ed732b5580bbed39c0325815adedf.tar.gz
micropython-52a593cdb14ed732b5580bbed39c0325815adedf.zip
py/scheduler: Only run callbacks on the main thread if GIL is disabled.
Otherwise it's very difficult to reason about thread safety in a scheduler callback, as it can run at any time on any thread - including racing against any bytecode operation on any thread. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'tests/thread/thread_stdin.py')
0 files changed, 0 insertions, 0 deletions