Well, the gcc version just prepends "__thread" before the variable to make it thread local, so no get and puts, but I just read the gcc manual and it seems really platform dependent and probably not worth looking into. On 10/29/06, Michael Gogins wrote: > It's not as easy as what I suggested and would require additional changes to the code to 'get' and 'put' the thread-local variables when required. > > Regards, > Mike > > -----Original Message----- > >From: Steven Yi > >Sent: Oct 29, 2006 12:56 PM > >To: Developer discussions > >Subject: Re: [Cs-dev] FLTK - Some static variables > > > >BTW: I was reading up on thread-local storage which seems to be > >possible with gcc and msvc. I was familiar with it from Java but > >didn't think about it in C/C++. I haven't used it ever in C/C++ and > >was wondering if it's something that would or wouldn't work for us. > >(I was reading up on it on wikipedia: > >http://en.wikipedia.org/wiki/Thread-local ) > > > >steven > > > > > >On 10/29/06, Steven Yi wrote: > >> Hi Victor, Michael, and Anthony, > >> > >> Thanks for your replies; I just wanted to point them out as something > >> that should probably be addressed. I guess in csound usage it doesn't > >> happen much where two CSD's with fltk things going on gets started in > >> the same process by anyone so it's not the biggest issue to take care > >> of I guess. If CsoundVST managed to work with FLTK instruments though > >> I guess it'd be an issue then. > >> > >> Michael's solution of using the map with CSOUND* as a key has probably > >> got to be the easiest way to do this. Maybe if time opens up I'll > >> take a shot at it, but it's pretty low priority for me at the moment. > >> > >> steven > >> > >> > >> On 10/28/06, Victor Lazzarini wrote: > >> > I think these shouldn't really go in the CSOUND structure, > >> > as the widgets are a separate plugin module. I am not > >> > so sure these are problematic, as Istvan did not move > >> > them. I had noticed them before, but never had a closer > >> > look. > >> > > >> > However, if you wish, you perhaps can try using the > >> > global variable mechanism that Istvan created. > >> > > >> > Victor > >> > > >> > > > >> > > Hi All, > >> > > > >> > > I found some static variables in both widgets.cpp and > >> > > FL_graph.cpp that I think need to be redone for > >> > > reentrancy. For widgets, this code is there: > >> > > > >> > > static vector fl_windows; // all panels > >> > > //static vector AddrValue; > >> > > // addresses of widgets that display current value > >> > > of valuators static vector AddrStack; > >> > > //addresses of containers static vector > >> > > AddrSetValue; //addresses of valuators static > >> > > vector allocatedStrings; static vector > >> > > snapshots; > >> > > > >> > > for FL_graph.cpp, this code is there: > >> > > > >> > > static Fl_Window *form = (Fl_Window *) 0; > >> > > static Fl_Choice *choice = (Fl_Choice *) 0; > >> > > static Fl_Button *end = (Fl_Button *) 0; > >> > > > >> > > > >> > > There are more in each of those files. > >> > > > >> > > Not sure where best to store these things. > >> > > > >> > > steven > >> > > > >> > > ---------------------------------------------------------- > >> > > --------------- Using Tomcat but need to do more? Need to > >> > > support web services, security? Get stuff done quickly > >> > > with pre-integrated technology to make your job easier > >> > > Download IBM WebSphere Application Server v.1.0.1 based on > >> > > Apache Geronimo > >> > > > >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> > > _______________________________________________ > >> > > Csound-devel mailing list > >> > > Csound-devel@lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/csound-devel > >> > > >> > ------------------------------------------------------------------------- > >> > Using Tomcat but need to do more? Need to support web services, security? > >> > Get stuff done quickly with pre-integrated technology to make your job easier > >> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> > _______________________________________________ > >> > Csound-devel mailing list > >> > Csound-devel@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/csound-devel > >> > > >> > > > >------------------------------------------------------------------------- > >Using Tomcat but need to do more? Need to support web services, security? > >Get stuff done quickly with pre-integrated technology to make your job easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >_______________________________________________ > >Csound-devel mailing list > >Csound-devel@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net