Sorry, one more note:In libpd, sched_tick is currently calling in the PROCESS macro in the context of the audio callback (in z_libpd.c).The function sched_tick handles all timed objects (such as metro) and therefore triggers all kinds of message processing downstream, where also memory operations commonly happen.In this sense, calling sys_domicrosleep at the end of PROCESS does not make the situation worse than it is right now.gr~~~
(*sys_fdpoll[i].fdp_fn)(sys_fdpoll[i].fdp_ptr, sys_fdpoll[i].fdp_fd);
If this were to be utilized by libpd, we should probably create a new, barebones method that does this polling (whatever that is...).
cheers,
Rich