
22 Aug
2005
22 Aug
'05
6:24 p.m.
This is unsafe because, for example, the target thread may be holding a mutex which can then never be unlocked. Valid uses for thread suspension and termination are few and far between.
Ben.
Maybe I used a wrong example The TerminateThread is only a example to illustrate some additional platform-dependent request. Of course TerminateThread is evil, but sometimes we know it and use it. What I need is , we don't lost control for the thread, I stilll can call any raw api in rare case.