killThread doc bug

Simon Marlow simonmar at microsoft.com
Fri Aug 30 05:24:22 EDT 2002


> In local.glasgow-haskell-bugs, you wrote:
> > I think it should be:
> >     killThread tid = throwTo tid (AsyncException ThreadKilled)
> 
> Yes, that's right.
> 
> I just noticed that 'killThread' in fact isn't implemented by
> means of 'throwTo', but uses the 'killThread#' primop...wouldn't
> it be cleaner to follow the above advice?

Yes.

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list