[Haskell-cafe] How does RTS judge that a STM transaction is blocked?
magicloud.magiclouds at gmail.com
Thu Feb 5 03:45:14 UTC 2015
Sorry, where should I put your code?
On Wed, Feb 4, 2015 at 9:42 PM, Robin Palotai <palotai.robin at gmail.com>
> More detail would be helpful, but sounds like an infinite (Async?) thread.
> bracket (newStablePtr a) freeStablePtr (const $ wait a)
> +google to find out why.
> 2015-02-04 13:59 GMT+01:00 Magicloud Magiclouds <
> magicloud.magiclouds at gmail.com>:
>> I met an issue while I was using xhb. When a certain property of root
>> window being changed, it was supposed to give me an AccessError. But
>> actually I got "thread blocked indefinitely in an STM transaction" when
>> I waitForEvent.
>> AFAIK, in xhb, it forks a thread to read what X server sends. Then
>> parse and put it into a TChan. waitForEvent reads from the TChan.
>> It is reasonable to me that if X server did not send anything, then
>> waitForEvent would be blocked. But apparently there are some other policies
>> in RTS.
>> So what is that? And how should I debug it?
>> And for G+, please use magiclouds#gmail.com.
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
And for G+, please use magiclouds#gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe