13
0

Correct signal handling for previous commit.

git-svn-id: svn://localhost/ardour2/branches/3.0@10130 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-09-26 21:03:11 +00:00
parent a7dc433498
commit 1f1abd0646

View File

@ -67,9 +67,11 @@ Manager::~Manager ()
Port *
Manager::add_port (Port* p)
{
RCUWriter<PortList> writer (_ports);
boost::shared_ptr<PortList> pw = writer.get_copy ();
pw->push_back (p);
{
RCUWriter<PortList> writer (_ports);
boost::shared_ptr<PortList> pw = writer.get_copy ();
pw->push_back (p);
}
PortsChanged (); /* EMIT SIGNAL */
@ -79,9 +81,11 @@ Manager::add_port (Port* p)
void
Manager::remove_port (Port* p)
{
RCUWriter<PortList> writer (_ports);
boost::shared_ptr<PortList> pw = writer.get_copy ();
pw->remove (p);
{
RCUWriter<PortList> writer (_ports);
boost::shared_ptr<PortList> pw = writer.get_copy ();
pw->remove (p);
}
PortsChanged (); /* EMIT SIGNAL */
}