hi all,
i'm curious about the t_symbol structure:
typedef struct _symbol { char *s_name; struct _class **s_thing; struct _symbol *s_next; } t_symbol;
what are the entries s_thing and s_next for? s_next implies a list of atoms ... how is it to be used?
cheers...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
Hi Tim,
typedef struct _symbol { char *s_name; struct _class **s_thing; struct _symbol *s_next; } t_symbol;
what are the entries s_thing and s_next for? s_next implies a list of atoms ... how is it to be used?
s_thing points to the pd object that is bound to a symbol (or for multiple bound objects to an object of the bindlist class) s_next is used internally... symbols are permanently stored in a hash table... the hash key is formed of the first few characters of the symbol string, therefore more symbols need to share the same hash table slot... these symbols form a linked list by using the s_next pointer
i hope that's corrent.... best greetings, Thomas
hi all,
is it possible to create a global object without graphic representation as an object box, but responding to a bound symbol?
tom
hi all, Thomas,
i was wondering which pd calls are allowed when using the glovbal locks. i tried this:
sys_lock(); outlet_bang(w->outlet); sys_unlock();
but it doesn't seem to work.. (stack overflow errors) i'm using pd-0.37-1
tom
i was wondering which pd calls are allowed when using the glovbal locks. i tried this:
sys_lock(); outlet_bang(w->outlet); sys_unlock();
but it doesn't seem to work.. (stack overflow errors) i'm using pd-0.37-1
at least no objects that run by the dsp scheduler ... if i understand it correctly, the sys_lock can be used to syncronize between used defined threads and pd's main thread...
cheers...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
at least no objects that run by the dsp scheduler ... if i understand it correctly, the sys_lock can be used to syncronize between used defined threads and pd's main thread...
for archiving purposes: i got a reply from Thomas. seems it's due to some stack overflow checking code which does not work well with threads. he has made a patch in current devel to fix this.
is it possible to create a global object without graphic representation as an object box, but responding to a bound symbol?
sure, but what exactly are you thinking of? it would probably be hardcoded or run by the XXX_setup routine working in a seperate thread...
cheers...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
is it possible to create a global object without graphic representation as an object box, but responding to a bound symbol?
sure, but what exactly are you thinking of?
a single a controller object for an external wave viewer/editor, instead of having several object boxes (clients) which talk to the editor..
so i can just call pd_new in a library setup routine, and then pd_bind to connect it to a symbol without causing havoc?
cheers tom