mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
NO-OP: name-change (_list and _lock are also used in other places)
Derived classes need to explicitly specify namespace and class to avoid ambiguities (even for private members)
This commit is contained in:
parent
fe5f00c367
commit
ea48c56061
2 changed files with 7 additions and 7 deletions
|
|
@ -191,10 +191,10 @@ class LIBPBD_API ScopedConnectionList : public boost::noncopyable
|
|||
one from another.
|
||||
*/
|
||||
|
||||
Glib::Threads::Mutex _lock;
|
||||
Glib::Threads::Mutex _scoped_connection_lock;
|
||||
|
||||
typedef std::list<ScopedConnection*> ConnectionList;
|
||||
ConnectionList _list;
|
||||
ConnectionList _scoped_connection_list;
|
||||
};
|
||||
|
||||
#include "pbd/signals_generated.h"
|
||||
|
|
|
|||
|
|
@ -34,19 +34,19 @@ ScopedConnectionList::~ScopedConnectionList()
|
|||
void
|
||||
ScopedConnectionList::add_connection (const UnscopedConnection& c)
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (_lock);
|
||||
_list.push_back (new ScopedConnection (c));
|
||||
Glib::Threads::Mutex::Lock lm (_scoped_connection_lock);
|
||||
_scoped_connection_list.push_back (new ScopedConnection (c));
|
||||
}
|
||||
|
||||
void
|
||||
ScopedConnectionList::drop_connections ()
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (_lock);
|
||||
Glib::Threads::Mutex::Lock lm (_scoped_connection_lock);
|
||||
|
||||
for (ConnectionList::iterator i = _list.begin(); i != _list.end(); ++i) {
|
||||
for (ConnectionList::iterator i = _scoped_connection_list.begin(); i != _scoped_connection_list.end(); ++i) {
|
||||
delete *i;
|
||||
}
|
||||
|
||||
_list.clear ();
|
||||
_scoped_connection_list.clear ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue