[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Thread killing in Win32
- From: "Peter Loveday" <peter@...>
- Date: Wed, 26 May 2004 07:19:23 +0930
As far as I know the only way to kill a thread is with TerminateThread().
Ideally you would arrange to send some sort of message or event to the
thread asking it to terminate itself (via ExitThread() or returning from
threadproc), for clean-ness. But if you can gaurrantee that the thread is
in a safe state (ie finished and dormant) it would probably be okay to
terminate it.
Love, Light and Peace,
- Peter Loveday
Director of Development, eyeon Software
----- Original Message -----
From: "Daniel Quintela" <danielq@advancedsl.com.ar>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Wednesday, May 26, 2004 6:05 AM
Subject: Thread killing in Win32
Hi,
I'm adding a kill function to my library.
In *ix it uses a signal approach, but in Win32 it is not possible.
Somebody knows like removing a win32 thread from a Non Alertable User Mode
Wait ?
Any help is welcome.
Thanks in advance,
Daniel