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

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to