Re: MicroPython on ESP32 with SPIRAM support
Posted: Thu Apr 12, 2018 7:38 am
Thank you for the awesome SPIRAM contribution. I like also the thread support that is needed for many of my projects. Here my question:
I create a new thread that runs in an endless while loop like
while isRunning:
---
I would like to stop this thread when I press ^C in the main REPL thread (without catching the Keyboard Interrupt exception explicitely). How can my thread know, if the REPL thread got a ^C and stop gently?
I tried the _thread.status() or _thread.list(). But the MainThread is still in state: running, even when I pressed ^C.
Thanks.
Aegidius
I create a new thread that runs in an endless while loop like
while isRunning:
---
I would like to stop this thread when I press ^C in the main REPL thread (without catching the Keyboard Interrupt exception explicitely). How can my thread know, if the REPL thread got a ^C and stop gently?
I tried the _thread.status() or _thread.list(). But the MainThread is still in state: running, even when I pressed ^C.
Thanks.
Aegidius