Message363983
The initial issue is now fixed. I close the issue.
take_gil() only checks if the thread must exit once the GIL is acquired. Maybe it would be able to exit earlier, but I took the safe approach. If we must exit, drop the GIL and then exit. That's basically Python 3.8 behavior.
If someone wants to optimize/enhance take_gil() for daemon thread, I suggest to open a new issue.
Note: Supporting daemon threads require tricky code in take_gil(). I would prefer to deprecate daemon threads and prepare their removal. |
|
| Date |
User |
Action |
Args |
| 2020-03-11 23:14:10 | vstinner | set | recipients:
+ vstinner, ncoghlan, eric.snow, pablogsal, nanjekyejoannah |
| 2020-03-11 23:14:10 | vstinner | set | messageid: <[email protected]> |
| 2020-03-11 23:14:10 | vstinner | link | issue39877 messages |
| 2020-03-11 23:14:10 | vstinner | create | |
|