[PD-dev] outlet_anything() & threads

IOhannes m zmoelnig zmoelnig at iem.at
Tue May 2 12:47:15 CEST 2006


Christian Klippel wrote:
> hi all,
> 
> can anyone confirm that using outlet_anything() inside a thread is safe?

i am pretty sure this assumption is illegal.
the problem will arise as soon as a "normal" object will receive 
messages from both threads.
if you "guarantee" (e.g. leave it at the users discretion :-)) that no 
unprepared object will be involved in several threads, the i guess you 
are on the safe side (but maybe you are not) (see tim's [detach]/[join] 
objects)

generally however, i think you should do the synchronisation between 
several threads before using outlet_*()

mfg.ad.r
IOhannes




More information about the Pd-dev mailing list