[Chicken-users] Repetitive callback into scheme from C thread hangs

2005-11-22 Thread Matthew David Parker
Normally to do a callback I'd do this: (define call.foo (foreign-safe-lambda void "callfoo")) (define AImain (lambda () (printf "hello\n"))) (define foo (foreign-safe-wrapper void "foo" () (lambda () (AImain And then in my C code: vo

Re: [Chicken-users] Repetitive callback into scheme from C thread hangs

2005-11-22 Thread felix winkelmann
On 11/22/05, Matthew David Parker <[EMAIL PROTECTED]> wrote: > > Normally to do a callback I'd do this: > > (define call.foo > (foreign-safe-lambda void "callfoo")) > > (define AImain > (lambda () > (printf "hello\n"))) > > (define foo > (foreign-safe-wrapper

Re: [Chicken-users] Repetitive callback into scheme from C thread hangs

2005-11-23 Thread Matthew David Parker
My program was using an SDL thread, actually, to run. That's probably the problem. I got it running using native threads, using the srfi-18 module. But, after trying it out I found that I couldn't run anything else at the same time, so it was sort of pointless. Consider this: (define jim (lamb

Re: [Chicken-users] Repetitive callback into scheme from C thread hangs

2005-11-23 Thread felix winkelmann
On 11/23/05, Matthew David Parker <[EMAIL PROTECTED]> wrote: > > My program was using an SDL thread, actually, to run. That's probably the > problem. I got it running using native threads, using the srfi-18 module. > But, after trying it out I found that I couldn't run anything else at the > same