[PD] problem making an audio-thread-safe external
Claude Heiland-Allen
claudiusmaximus at goto10.org
Sun Oct 18 06:10:53 CEST 2009
Ivica Ico Bukvic wrote:
> iret1 = pthread_create( &thread, NULL, cwiid_pthread2_setRumble,
> (void*) &rPars);
This creates a new thread.
> pthread_join(thread, NULL);
This waits (blocking Pd's main thread) until the new thread terminates.
So, why create a new thread only to immediately wait for it to terminate
- that makes the program essentially behave in a single threaded way.
Hope this makes sense,
Claude
--
http://claudiusmaximus.goto10.org
More information about the Pd-list
mailing list