Message413202
> Anything at the Python level that cares whether the thread is
> still alive will call _wait_for_tstate_lock() again
It's nice that _maintain_shutdown_locks() gets called in _stop(), but the more important call site is in _set_tstate_lock().
I typed up the example initially with try/finally. Then I changed it to avoid the extra lock.locked() call when there's no exception, but I forgot to add a `raise` statement:
try:
if lock.acquire_and_release(block, timeout):
self._stop
except:
if not lock.locked():
self._stop()
raise |
|
Date |
User |
Action |
Args |
2022-02-14 00:39:55 | eryksun | set | recipients:
+ eryksun, tim.peters, pitrou, vstinner, serhiy.storchaka, Kevin Shweh, bjs, SnoopJeDi |
2022-02-14 00:39:55 | eryksun | set | messageid: <1644799195.69.0.720809671882.issue46726@roundup.psfhosted.org> |
2022-02-14 00:39:55 | eryksun | link | issue46726 messages |
2022-02-14 00:39:55 | eryksun | create | |
|