Message238383
| Author |
Vadim Markovtsev |
| Recipients |
BreamoreBoy, Glenn.Maynard, Vadim Markovtsev, christian.heimes, grahamd, neologix, pitrou, tarek, tim.peters, vstinner, zvezdan |
| Date |
2015年03月18日.08:50:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426668625.24.0.450696118355.issue14073@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I agree that there must be some way to join the threads before exiting, with a callback or anything else. Currently, my thread pool implementation has to monkey patch sys.exit and register SIGINT handler to shutdown itself and avoid the hangup (100+ LoC to cover all possible exceptions). I am working on a big framework and demanding from users to call "thread pool shutdown" function before exit would be yet another thing they must remember and just impossible in some cases. It would ruin the whole abstraction. Python is not C, you know. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年03月18日 08:50:25 | Vadim Markovtsev | set | recipients:
+ Vadim Markovtsev, tim.peters, pitrou, vstinner, christian.heimes, tarek, grahamd, zvezdan, neologix, BreamoreBoy, Glenn.Maynard |
| 2015年03月18日 08:50:25 | Vadim Markovtsev | set | messageid: <1426668625.24.0.450696118355.issue14073@psf.upfronthosting.co.za> |
| 2015年03月18日 08:50:25 | Vadim Markovtsev | link | issue14073 messages |
| 2015年03月18日 08:50:24 | Vadim Markovtsev | create |
|