threadsafe needed

Simon Marlow simonmar at microsoft.com
Tue Oct 5 08:40:57 EDT 2004


On 05 October 2004 10:16, John Meacham wrote:

> Quite a few foreign calls in the library are missing threadsafe in
> their declarations. if this could be fixed by 6.2.2 that would be
> great. in particular
> system, rawSystem, and DNS lookups are important to be able to do
> concurrently.

Thanks, I've fixed those.  We don't have threadsafe by the way; only
safe/unusafe.  Safe also means threadsafe.

> Also, is there plans for a threadunsafe? which seems like it would be
> a much more common case than threadsafe and should be much easier to
> implement since there is no chance the haskell runtime can be called
> from a thread it didn't expect.

Not sure what you mean by threadunsafe.  Is it different from plain
unsafe?

We *want* the RTS to be able to be called by threads it doesn't expect.
Otherwise how do you implement a thread-safe library API in Haskell?

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list