rename TransportMasterManager::init() to ::set_default_configuration() to make its...
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 3 Nov 2018 01:50:14 +0000 (21:50 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 3 Nov 2018 01:52:00 +0000 (21:52 -0400)
libs/ardour/ardour/transport_master_manager.h
libs/ardour/globals.cc
libs/ardour/transport_master_manager.cc

index 5ed3855eb2200ceafb50d44b7f2452ac6ac43c56..ac61a97a9f36eba34a2214282008b95c5a5acffb 100644 (file)
@@ -35,9 +35,13 @@ class LIBARDOUR_API TransportMasterManager : public boost::noncopyable
   public:
        ~TransportMasterManager ();
 
-       int init ();
+       int set_default_configuration ();
 
        static TransportMasterManager& instance();
+       /* this method is not thread-safe and is intended to be used only
+        * very early in application-lifetime to check if the TMM has
+        * been created yet. Do not use in other code.
+        */
        static bool exists() { return _instance != 0; }
 
        typedef std::list<boost::shared_ptr<TransportMaster> > TransportMasters;
index eab0b93a41345d57024997126cbd748c7111beb1..eca6d44de2e6bf0ad4681c34b4182a1e31deafed 100644 (file)
@@ -608,7 +608,7 @@ ARDOUR::init_post_engine ()
                        /* XXX now what? */
                }
        } else {
-               if (TransportMasterManager::instance().init ()) {
+               if (TransportMasterManager::instance().set_default_configuration ()) {
                        error << _("Cannot initialize transport master manager") << endmsg;
                        /* XXX now what? */
                }
index 6354dff05ce3c53d7a207c11218cc7e9ce64f7cd..fafbf6042bf255daa11662ea0a6288126c7a7aa6 100644 (file)
@@ -51,7 +51,7 @@ TransportMasterManager::~TransportMasterManager ()
 }
 
 int
-TransportMasterManager::init ()
+TransportMasterManager::set_default_configuration ()
 {
        try {
                /* setup default transport masters. Most people will never need any