[Haskell-cafe] turn off "thread blocked indefinitely in an STM transaction"?

Johannes Waldmann johannes.waldmann at htwk-leipzig.de
Tue Nov 17 12:06:10 UTC 2015


Ah, neat. I get the idea. But does it work here?

import Control.Concurrent.STM
import Foreign.StablePtr
main =  atomically retry >>= newStablePtr

ghc -threaded -rtsopts -O2 sp.hs

./sp +RTS -N
sp: thread blocked indefinitely in an STM transaction

- J.


More information about the Haskell-Cafe mailing list