Benoît Minisini ha scritto:
> Hi,
>
> I don't remember who needed signal management in Gambas.
>
> But it's there now in Gambas 3 since revision #3037, through a new component 
> named "gb.signal" and a static class named "Signal".
>
> Signal.Ignore(<signal number>) to ignore a signal.
> Signal.Catch(<signal number>) to catch a signal.
> ...
>   
Nice thing. But now I have a further question: is it possible to 
implement generic callbacks in Gambas?
I mean - many libraries have functions where you specify a callback to 
be called, like the glib function g_signal_connect(); it would be nice 
to implement them, even partly, without resorting to write a gambas 
component. May be that by using libffi it is possible to implement them 
fully, but even a simple event could do. My problem now is that using 
ALSA, I must poll continuously to see if some event is coming in, 
wasting a lot of CPU and losing precision. With a callback if would be 
much simpler...

I hope I have been clear enough.

Regards,
Doriano


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to