| There are two strategies:
Create a new C++ class that encapsulates the current globals and that is
associated with one or more of the widet opcodes; or
Create a std::map< CSOUND *, std::vector > fl_windows that keeps a
separate copy of these globals for each running instance of Csound.
Regards,
Mike
----- Original Message -----
From: "Steven Yi"
To: "Developer discussions"
Sent: Saturday, October 28, 2006 11:48 AM
Subject: [Cs-dev] FLTK - Some static variables
> 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 |