259d9b69fe
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> |
||
---|---|---|
.. | ||
board.c | ||
board.h | ||
main.c | ||
Makefile | ||
modpyb.c | ||
modpyb.h | ||
modpybled.c | ||
modpybswitch.c | ||
mpconfigport.h | ||
pic16bit_mphal.c | ||
pic16bit_mphal.h | ||
qstrdefsport.h | ||
unistd.h |