[PD] timing question

Martin Peach martin.peach at sympatico.ca
Mon Dec 17 00:16:40 CET 2007


Yvan Vander Sanden wrote:
> hi.
>
> I am currently working on an external that generates rhythmic pulses in 
> a certain way. But I was wondering if I could run into problems with 
> calling usleep in an external. Alternatively, I suppose i could use a pd 
> timer as an input and let it give a bang each milli-second, but that 
> doesn't seem like a good idea to me.
>
> I suppose externals are all separate threads, or am I wrong about that?
>   
No they are all in the same thread as pd unless you start another thread 
inside the external.
If you want your external to sleep you'll need to make a new thread, as 
in the tcpclient code.

Martin




More information about the Pd-list mailing list