Miller Puckette schrieb:
Yes, I'm scared to death of threads. The readsf~/writesf~ objects do use them (there's no alternative) but my experience in general is that it's very hard to maintain threaded code if you want a high level of reliability (which I do in Pd)...
The threaded versions of my ogg vorbis streaming externals are largely based on the readsf~/writesf~ code. It took me some time to fix all the bugs in my code but after that the externals now work more reliable than the unthreaded ones.
There's also a (partly) threaded netsend available at http://www.akustische-kunst.de/puredata/winport.html for those who haven't noticed it. Maxlib's netdist uses multithreading as well...
Olaf