I'm wondering what peoples opinions are on the subject of externals with their own threads. Are there reasons this is is not advised (e.g. reentrancy of subsequent calls)? To be specific I'm talking about threads that initiate output. I've looked at the sourcecode for netreceive and noticed the use of sys_addpollfn, but as this method is not included in m_pd.h, i wonder if it's even intended to be used in externals. One of the reasons i ask is that the example/test code attached bellow seems to work on one of my machines (Pentium 4/Fedora 2/PD 0.37.1), but when I run it on another (a PowerbookG4/Gentoo/PD 37.4) I get a stack overflow at the outlet_float.
well ... the only clean way of synchronizing