On Tue, 2004-05-11 at 10:24, Dan Sugalski wrote: > >I'm also curious how to write an interface to an existing event system. > >Being able to write it all in PASM is a bonus. > > I don't think it can be all-PASM, except maybe (and maybe not...) > with a separate thread for the existing event source. To do it in all > pasm means calling back into parrot from interrupt level, which isn't > really doable, or have a thread just waiting on events from the > alternate event system to post into the parrot event queue.
Another approach may be to expose the PollEvent and WaitEvent functions to the event system as alternate sources of events. If I can do that from PASM, I think I'm okay. -- c