> Simon Marlow wrote:
> > Hmm, good points.  The delay before running the signal 
> handler shouldn't be
> > too long, unless you have *lots* of running threads.  
> Actually it is long in the case of the program I'm trying (1 
> minute and counting).  
> I think that's because input is done via a _ccall_ (using 
> Readline actually).  
> Would I be right in thinking that _ccall_'s bring everything 
> else to a stop?

Absolutely - that's because we're still not using OS threads (see earlier
discussions), so if a Haskell thread decides to block in a ccall then
there's nothing you can do about it.

I don't think there's an easy way to use readline in a thread-friendly way
without hacking the readline source itself, sorry about that.

Cheers,
        Simon

Reply via email to