David Lechner 259d9b69fe 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>
2021-06-19 09:49:00 +10:00
..
2021-06-18 16:38:06 +10:00
2021-03-11 12:51:10 +11:00
2021-03-11 12:51:10 +11:00
2019-11-21 12:04:53 +11:00
2020-10-22 11:40:56 +02:00
2020-10-22 11:40:56 +02:00
2021-06-19 09:43:44 +10:00