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
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
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
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