Re[2]: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Bulat Ziganshin
Hello Simon, Monday, October 23, 2006, 5:05:56 PM, you wrote: > Perhaps your bug is that you're using hGetBufNonBlocking, which isn't on > Windows? _whose_ bug? you write to Simon Marlow :) and what is you explanation why Vyacheslav's programs using getLine does block? -- Best regards, Bu

Re[2]: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Bulat Ziganshin
Hello Vyacheslav, Monday, October 23, 2006, 7:20:47 AM, you wrote: > Bulat: I didn't get the chance to use the streams library yet, but > could you explain how it would solve my locking problem? The core > problem that the runtime under Win32 doesn't have an IO manager still > remains, correct?

Re[2]: Concurrency issue with dynamic linker in GHC

2006-10-22 Thread Bulat Ziganshin
Hello Donald, Sunday, October 22, 2006, 9:04:02 AM, you wrote: >> can't you define this call as 'safe'? > But is it safe. Hmm I get kind of queasy when mucking about in the rts. i don't understand you (because of my weak English). 'safe' specifier is just says that function should be calle

Re[2]: Concurrency issue with dynamic linker in GHC

2006-10-21 Thread Bulat Ziganshin
Hello Donald, Saturday, October 21, 2006, 1:03:34 PM, you wrote: >> > I am running ghc 6.4.2 on a Win32 machine. I'm using hs-plugins in one > Oh, that's almost certainly it. Bulat++ > It's blocking on the foreign call (into the linker), since there's no IO > manager thread, I think. can't you

Re[2]: Concurrency issue with dynamic linker in GHC

2006-10-21 Thread Bulat Ziganshin
Hello Bulat, Saturday, October 21, 2006, 12:56:48 PM, you wrote: > use 'vGetLine fdStdIn' in order to read lines. you should strip sorry, use do h <- bufferBlockStream fdStdIn vGetLine h vGetLine h ... -- Best regards, Bulatmailto:[EMAIL PROTECTED] __