Chris,
if you want to use Thomas Grill's Flext, he has some _very_ simple examples in his docs on how to use threads. its simple and cross platform.
otherwise, using threads in PD is just like using threads anywhere else. use the pthread stuff (which also works on windoze mitlerweile), and just put some mutex's around your read/write operations.
best -august.
On Sun, 28 Aug 2005, Christian Klippel wrote:
hi all,
is there any simple object that creates and uses a thread, and which is cross-platform between at least linux, os-x and win? and if not a simple, is there any other? or has someone such a "bare-bone" object at hand maybe?
goal is to make the object for the multIO threaded, so it would be just a simple reader-thread that toggles/writes to two message queses (one writing, the other reading)
thanks in advance,
chris
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list