diff options
author | David Lechner <david@pybricks.com> | 2021-05-10 22:18:17 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-06-19 09:49:00 +1000 |
commit | 259d9b69fe1f0e5c473bad85755d59233e0d182e (patch) | |
tree | e420d35ab69cc79e4067010fd48bfb57bf8f8489 /extmod/btstack/modbluetooth_btstack.c | |
parent | ca920f72184c50f61002aa9d5cd01555b1e28b7b (diff) |
py/mpstate: Schedule KeyboardInterrupt on main thread.
This introduces a new macro to get the main thread and uses it to ensure
that asynchronous exceptions such as KeyboardInterrupt (CTRL+C) are only
scheduled on the main thread. This is more deterministic than being
scheduled on a random thread and is more in line with CPython that only
allow signal handlers to run on the main thread.
Fixes issue #7026.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'extmod/btstack/modbluetooth_btstack.c')
0 files changed, 0 insertions, 0 deletions