13
0

add more DEBUG_TRACE statements for port/destruction debugging

This commit is contained in:
Paul Davis 2016-10-14 12:30:16 -04:00
parent 2c2ce7aa55
commit 5b22e67387
2 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,8 @@ IO::~IO ()
{
Glib::Threads::Mutex::Lock lm (io_lock);
DEBUG_TRACE (DEBUG::Ports, string_compose ("IO %1 unregisters %2 ports\n", name(), _ports.num_ports()));
BLOCK_PROCESS_CALLBACK ();
for (PortSet::iterator i = _ports.begin(); i != _ports.end(); ++i) {

View File

@ -56,6 +56,8 @@ PortManager::clear_pending_port_deletions ()
{
Port* p;
DEBUG_TRACE (DEBUG::Ports, string_compose ("pending port deletions: %1\n", _port_deletions_pending.read_space()));
while (_port_deletions_pending.read (&p, 1) == 1) {
delete p;
}
@ -406,6 +408,7 @@ PortManager::unregister_port (boost::shared_ptr<Port> port)
Ports::iterator x = ps->find (make_port_name_relative (port->name()));
if (x != ps->end()) {
DEBUG_TRACE (DEBUG::Ports, string_compose ("removing %1 from port map (uc=%2)\n", port->name(), port.use_count()));
ps->erase (x);
}