Message380886
> always interrupt and let the thread decide if it has something to do.
SIGNAL_PENDING_CALLS() is called on a Python thread via signal.raise_signal() or _thread.interrupt_main() / PyErr_SetInterrupt(). If you'd rather keep the COMPUTE_EVAL_BREAKER() call in that case, the console control-event case can be distinguished via PyGILState_GetThisThreadState(). It returns NULL if there's no thread state, i.e. WINAPI TlsGetValue returns NULL. |
|
Date |
User |
Action |
Args |
2020-11-13 14:08:17 | eryksun | set | recipients:
+ eryksun, gvanrossum, paul.moore, vstinner, tim.golden, Mark.Shannon, zach.ware, serhiy.storchaka, steve.dower, miss-islington |
2020-11-13 14:08:17 | eryksun | set | messageid: <1605276497.04.0.935978033731.issue42296@roundup.psfhosted.org> |
2020-11-13 14:08:17 | eryksun | link | issue42296 messages |
2020-11-13 14:08:16 | eryksun | create | |
|