logo       

Re: FunPtr callbacks broken?: msg#00049

lang.haskell.glasgow.bugs

Subject: Re: FunPtr callbacks broken?

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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise