10 Feb
2005
10 Feb
'05
10:14 a.m.
Cory Nelson
The reason it is not implemented is likely because canceling a thread can be unsafe - there is no stopping it from canceling in the middle of a malloc()/new (in win32, at least) and leaking memory.
This shounds like you're talking about thread *termination*, which indeed is not safe. IIUC, then a future thread cancellation feature in boost::thread works with exceptions which are thrown from lock/wait functions. So, a thread cannot be cancelled while it is busy allocating memory inside malloc/new. Regards, Andreas