FunPtr callbacks broken?
Jeremy Shaw
jeremy.shaw at linspireinc.com
Thu Oct 20 17:30:57 EDT 2005
At Thu, 20 Oct 2005 16:59:30 -0400,
Wolfgang Thaller wrote:
>
> > simplejack: schedule: re-entered unsafely.
> > Perhaps a 'foreign import unsafe' should be 'safe'?
> Are jack callbacks invoked on a second thread? (looks like they are).
I am not quite sure what you mean by this, but the answer is probably
yes anyway you slice it. The callback is called by a thread in another
program (the jack daemon).
> If so, you need to use the threaded RTS, activated by passing -
> threaded to ghc.
>
> ghc --make -fglasgow-exts SimpleJack.hs -o simplejack -ljack -threaded
Ah! That seems to have fixed it. Thanks!
Jeremy Shaw.
More information about the Glasgow-haskell-bugs
mailing list