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

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

Reply via email to