diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-03-14 14:24:14 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-03-14 14:24:14 +0000 |
commit | 29f6f0cf05893371a64fb14f8868a3e0e4effd39 (patch) | |
tree | 959fb35622fc07932fdc6711ee7e1da64ffcd10f /libs/ardour/configuration.cc | |
parent | 0641df0ccd0c993d05a75793af9de571d3ce4725 (diff) |
no more peak building thread; don't print config var stores, but it possible to do it again without another complete recompile
git-svn-id: svn://localhost/ardour2/trunk@1588 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/configuration.cc')
-rw-r--r-- | libs/ardour/configuration.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ardour/configuration.cc b/libs/ardour/configuration.cc index e2531b3dcf..c8d71c5155 100644 --- a/libs/ardour/configuration.cc +++ b/libs/ardour/configuration.cc @@ -316,6 +316,22 @@ Configuration::map_parameters (sigc::slot<void,const char*> theSlot) #undef CONFIG_VARIABLE_SPECIAL } +bool ConfigVariableBase::show_stores = false; + +void +ConfigVariableBase::set_show_stored_values (bool yn) +{ + show_stores = yn; +} + +void +ConfigVariableBase::show_stored_value (const string& str) +{ + if (show_stores) { + cerr << "Config variable " << _name << " stored as " << str << endl; + } +} + void ConfigVariableBase::notify () { @@ -328,3 +344,4 @@ ConfigVariableBase::miss () // placeholder for any debugging desired when a config variable // is set but to the same value as it already has } + |