How to kill a thread from another thread ?

Jose Correia joseKILL at THECAPSshangosoft.com
Thu Nov 9 10:28:52 EST 2000


You can also do this with an Event trigger (each thread periodically checks
and shuts itself down) or with a common Queue (an item in it acting as a
trigger).

HTH,

Jose



"Richard Gruet" <rgruet at ina.fr> wrote in message
news:3A0A6715.35C19F47 at ina.fr...
> Hi Pythoners,
>
> Does someone know how to kill a Python thread from another Python thread
(in the
> same process) ?
> In both thread and threading modules, there is functions to launch such
threads,
> but no way to kill/terminate them. On WIN32, the WIN32 function
> TerminateThread() is missing in the  Win32 extensions' win32 api module.
>
> Thanks for any help,
>
> Richard Gruet
>









More information about the Python-list mailing list