fix race condition when dropping Ports
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 8 Aug 2016 13:26:50 +0000 (09:26 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 8 Aug 2016 13:27:21 +0000 (09:27 -0400)
commit448902f870a1673829c27afa3330c3faa73d610f
tree568a90de7f1e3ca6792ecbc012c31f6196d8686b
parentfdf63ace6a655f772a46e73719de14f9dd6fb940
fix race condition when dropping Ports

Jack2 calls back from a notification thread and the callback (PortManager::connect_callback())
could end up holding the final reference on 1 or more ports. The ports would then be
unregistered as we leave the callback scope, which is illegal (no server calls from
a notification thread)
libs/ardour/io.cc