bug: unstable myThreadId in GHC 6.6.1

2009-04-10 Thread Bulat Ziganshin
Hello glasgow-haskell-users, i've looked for this bug in Trac but don't found anything. so: startGUI action = runInBoundThread $ do unsafeInitGUIForThreadedRTS myThreadId = writeIORef guiThread action = widgetShowAll mainGUI guiThread = unsafePerformIO$ newIORef$ error undefined

Re: bug: unstable myThreadId in GHC 6.6.1

2009-04-10 Thread Don Stewart
Could you send a full example we can compile and test? This is only a fragment. bulat.ziganshin: Hello glasgow-haskell-users, i've looked for this bug in Trac but don't found anything. so: startGUI action = runInBoundThread $ do unsafeInitGUIForThreadedRTS myThreadId = writeIORef

Re[2]: bug: unstable myThreadId in GHC 6.6.1

2009-04-10 Thread Bulat Ziganshin
Hello Don, Friday, April 10, 2009, 8:36:32 PM, you wrote: unfortunately, full example is my whole program. i will try to make short example if someone will say that it looks like a bug and it was not fixed in intermediate versions. basically, scenario is simple - myThreadId changed due the life