diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-13 17:18:42 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-13 17:18:54 -0400 |
commit | 8f9a9523d2161ee15975f5f9136ef80d4bfbf3e2 (patch) | |
tree | fa82656ffa02c7e9d8a959803f501ab95fcbd482 /libs/ardour/ardour/audioengine.h | |
parent | 1552547f650a82487ac72615c8533fd25b4ffc39 (diff) |
new scheme for managing port deletion
shared_ptr<Port> now uses a deleter functor which pushes Port* to a lock-free FIFO so that the Port is
always deleted (and thus unregistered with the PortEngine/backend) in a safe context w.r.t. various
callbacks in the host. Currently the auto_connect_thread in Session has been tasked with doing these
deletions.
Diffstat (limited to 'libs/ardour/ardour/audioengine.h')
-rw-r--r-- | libs/ardour/ardour/audioengine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/audioengine.h b/libs/ardour/ardour/audioengine.h index cb5b82d058..f297e993b3 100644 --- a/libs/ardour/ardour/audioengine.h +++ b/libs/ardour/ardour/audioengine.h @@ -247,6 +247,8 @@ class LIBARDOUR_API AudioEngine : public PortManager, public SessionHandlePtr PBD::Signal0<void> BecameSilent; void reset_silence_countdown (); + void add_pending_port_deletion (Port*); + private: AudioEngine (); |