chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] performance isssue with FFI callbacks


From: Felix
Subject: Re: [Chicken-users] performance isssue with FFI callbacks
Date: Sat, 26 Mar 2011 14:57:42 +0100 (CET)

> If I comment out jack_set_process_callback, everything is fine. But if the
> callback is set, here are the different results I can get:
> 
> # jack_activate = foreign-lambda
> 
> [panic] callback invoked in non-safe context - execution terminated
> [...]
> jack.scm:172: jack_activate   <--
> 
> # jack_activate = foreign-safe-lambda
> 
> jack_activate ...
> Segmentation fault
> 
> 
> By pure curiosity, I tried various combinations with jack_deactivate as
> foreign-safe-lambda, and I get other errors that are not necessarily the same
> with each run (I guess it has something to do with my program and jacks 
> running
> in two different processes)
> 
> I might be wrong, but I think the tricky part is that scheme is not calling 
> any
> C function that calls back into scheme. jack_set_process_callback merely gives
> informations to the jack server, and jack_activate only tells the server 
> "okay,
> you can start using the callback".
> 

On what platform are you running this code? How is the
callback declared (in C)?


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]