Hi,

In message "[ruby-talk:01622] Re: Ruby/GTK and the mainloop"
    on 00/02/28, Dave Thomas <Dave / thomases.com> writes:

|This approach sounds like it is specific to Gtk. It would be nice to
|have a more general approach, which would allow Ruby to be embedded in 
|other applications in the future. Is this possible?

Basic principle to embed Ruby to call CHECK_INTS periodically.
The problem here is how to switch back to the application.
If the application provides the file describtor to select(2), I gradly
add new function to watch it in rb_thread_schedule().  But things are
not so simple most of the case.

							matz.