David M . Lloyd <[EMAIL PROTECTED]> writes:
>I have written an XS interface into a library that performs I/O and then
>can asynchronously call a C function upon completion.
Is it really asynchronous ? - what initiates the callback ?
GUIs do this all the time (e.g Tk) but callback isn't async, as it is
only despatched when GUI glue code gets round to reading the XEvent.
So one can then write a C function which calls a Perl sub and use that
as the callback.
Also really modern perl 5.7.1+ has "safe" (synchronous) signals now,
so you may be able to piggy-back that.
>Is there a SAFE way
>I can reflect an asynchronous callback into Perl? I can't think of any
>ways, but there are people on this list who are far more experienced than
>me at this sort of thing. :-)
>
>Thanks!
>
>- D
>
><[EMAIL PROTECTED]>
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/