diff vamp-sdk/PluginAdapter.h @ 13:85801331454c

* Make static adapter map a pointer to avoid any confusion about static destructor ordering
author cannam
date Thu, 06 Apr 2006 16:35:49 +0000
parents a3d35e11c3fe
children be8fdfe25693
line wrap: on
line diff
--- a/vamp-sdk/PluginAdapter.h	Thu Apr 06 15:12:25 2006 +0000
+++ b/vamp-sdk/PluginAdapter.h	Thu Apr 06 16:35:49 2006 +0000
@@ -105,8 +105,9 @@
     VampFeatureList *convertFeatures(Plugin *plugin,
                                      const Plugin::FeatureSet &features);
     
+    // maps both plugins and descriptors to adapters
     typedef std::map<const void *, PluginAdapterBase *> AdapterMap;
-    static AdapterMap m_adapterMap;
+    static AdapterMap *m_adapterMap;
     static PluginAdapterBase *lookupAdapter(VampPluginHandle);
 
     bool m_populated;