From c67392abf59b500fe405101d7ad896d9da869e47 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 5 Jan 2010 03:51:50 +0000 Subject: Realtime safe buffer reference handling. Turns out that dropping a shared_ptr is not realtime safe, even if you use a realtime safe deleter. Instead, instrusive_ptr is used for buffer references, so a buffer reference may safely be dropped in the audio thread (in which case it will be recycled by the BufferFactory). Faster, cleaner, better. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2341 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/LV2Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine/LV2Node.cpp') diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp index e2f91927..6f39782b 100644 --- a/src/engine/LV2Node.cpp +++ b/src/engine/LV2Node.cpp @@ -367,7 +367,7 @@ LV2Node::process(ProcessContext& context) void -LV2Node::set_port_buffer(uint32_t voice, uint32_t port_num, SharedPtr buf) +LV2Node::set_port_buffer(uint32_t voice, uint32_t port_num, BufferFactory::Ref buf) { assert(voice < _polyphony); slv2_instance_connect_port((*_instances)[voice], port_num, -- cgit v1.2.1