On Thu 22 Mar 2012 22:36, Neil Jerram <n...@ossau.homelinux.net> writes:
> It seems like the module has to anticipate the main loop infrastructure > that any using programs will use - which isn't a nice solution. How about, you write your code in such a way that it deals with eports. You could surround your code in a prompt that if an eport operation aborts because it would block, you save the continuation and ask your main loop to call you again when the port is readable / writable. When it calls you again you resume the partial continuation. If you need to sleep, you use sleep from (ice-9 ethreads). Somehow we make it so that ethreads can use other main loops, like the dbus, efl, etc loops. Dunno. So many possibilities! Andy -- http://wingolog.org/