[PD-dev] Is gensym() threadsafe?

Tim Blechmann TimBlechmann at gmx.net
Tue Dec 13 23:23:54 CET 2005


> Thanks! So how do I use syslock from another thread?
> 
> Does this make sence:?
> 
> t_symbol *thread_safe_gensym(char *symbol){
>   t_symbol *ret;
>   sys_lock();
>   ret=gensym(symbol);
>   sys_unlock();
>   return ret;

exactly!

t

-- 
mailto:TimBlechmann at gmx.de    ICQ: 96771783
http://www.mokabar.tk

latest mp3: kMW.mp3
http://mattin.org/mp3.html

latest cd: Goh Lee Kwang & Tim Blechmann: Drone
http://www.geocities.com/gohleekwangtimblechmannduo/

After one look at this planet any visitor from outer space 
would say "I want to see the manager."
				      William S. Burroughs




More information about the Pd-dev mailing list