in reply to Re: how to kill a thread in windows
in thread how to kill a thread in windows
One thing I can think of would be to use the Windows API to suspend and/or kill your threads via their threads->pid,
I guess you meant threads->tid. Even so, that wouldn't work as the thread id it returns is a Perl-internal id, not anything the OS would recognise. However, the cpan version of the threads module does export threads->_handle which could be used in conjunction with Win32::API to Terminate a thread, but like you, I would strongly warn against designing code to use this.
|
|---|