On Thu, 10 Apr 2003, Mike Berry wrote: > I have a high-priority audio processing thread calling the plugin's > process method. I have a UI thread which wants to ask the plugin what > the value of a parameter currently is. Here are my choices on Windows: > 1.) Critical section the plugin entry. Bad things happen when UI thread > blocks the process thread. So ditch this possibility. > 2.) Keep a complete copy of the plugin's parameters in the host which > can be read in a synchronized manner. Now I have the data stored in two > places, and have to keep those in sync, based on less information than > the plugin has. Possible, but certainly less efficient. 3.(?) Have your graphics thread post a notification to the process thread to pull the parameter immediately after the next process. The graphics thread then waits for the result (but that doesn't matter, it's only going to wait til the end of the next buffer cycle). Regards, Angus. ---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission. Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe