[D-runtime] A mechanism to kill threads
Sean Kelly
sean at invisibleduck.org
Wed May 16 14:49:26 PDT 2012
You're assuming that people read documentation. In my experience, they don't. But more to the point, since this is something that's fairly easy for a user to add if he needs it, there's no reason to expose it in core.thread.
On May 16, 2012, at 2:40 PM, Alex Rønne Petersen wrote:
> So you are against adding this functionality to druntime even with a
> big, fat, red warning explaining why it's unsafe and how *not* to use
> it?
>
> Regards,
> Alex
>
> On Wed, May 16, 2012 at 11:38 PM, Sean Kelly <sean at invisibleduck.org> wrote:
>> On May 16, 2012, at 10:04 AM, Alex Rønne Petersen wrote:
>>>
>>> Is there any reason we don't have a Thread.kill() function?
>>
>> Because Thread.kill() is inherently unsafe. If a user really wants to expose that functionality he can subclass Thread.
>> _______________________________________________
>> D-runtime mailing list
>> D-runtime at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/d-runtime
> _______________________________________________
> D-runtime mailing list
> D-runtime at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/d-runtime
More information about the D-runtime
mailing list