Rename mutex to avoid confusion.
authorCarl Hetherington <cth@carlh.net>
Sat, 23 May 2015 16:40:03 +0000 (17:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 23 May 2015 16:40:03 +0000 (17:40 +0100)
src/lib/signaller.h

index 4ef9b38b36f99a304e4cbbbdf3d6204ee02102b4..661a171eccea20e6f98f28782dd56234d1318f1a 100644 (file)
@@ -89,7 +89,7 @@ class Signaller
 public:
        /* Can be called from any thread */
        virtual ~Signaller () {
 public:
        /* Can be called from any thread */
        virtual ~Signaller () {
-               boost::mutex::scoped_lock lm (_mutex);
+               boost::mutex::scoped_lock lm (_signaller_mutex);
                for (std::list<WrapperBase*>::iterator i = _wrappers.begin(); i != _wrappers.end(); ++i) {
                        (*i)->invalidate ();
                }
                for (std::list<WrapperBase*>::iterator i = _wrappers.begin(); i != _wrappers.end(); ++i) {
                        (*i)->invalidate ();
                }
@@ -104,7 +104,7 @@ public:
                        signal_manager->emit (boost::bind (&Wrapper<T>::signal, w));
                }
                
                        signal_manager->emit (boost::bind (&Wrapper<T>::signal, w));
                }
                
-               boost::mutex::scoped_lock lm (_mutex);
+               boost::mutex::scoped_lock lm (_signaller_mutex);
 
                /* Clean up finished Wrappers */
                std::list<WrapperBase*>::iterator i = _wrappers.begin ();
 
                /* Clean up finished Wrappers */
                std::list<WrapperBase*>::iterator i = _wrappers.begin ();
@@ -124,7 +124,7 @@ public:
 
 private:
        /* Protect _wrappers */
 
 private:
        /* Protect _wrappers */
-       boost::mutex _mutex;
+       boost::mutex _signaller_mutex;
        std::list<WrapperBase*> _wrappers;
 };
 
        std::list<WrapperBase*> _wrappers;
 };