From 8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 23 Apr 2012 02:32:33 +0000 Subject: Localise buffer reference stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4252 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/BufferFactory.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/server/BufferFactory.cpp') diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp index d5b268b7..73b6558d 100644 --- a/src/server/BufferFactory.cpp +++ b/src/server/BufferFactory.cpp @@ -92,7 +92,7 @@ BufferFactory::default_buffer_size(LV2_URID type) } } -BufferFactory::Ref +BufferRef BufferFactory::get(LV2_URID type, uint32_t capacity, bool force_create) { Raul::AtomicPtr& head_ptr = free_list(type); @@ -114,21 +114,21 @@ BufferFactory::get(LV2_URID type, uint32_t capacity, bool force_create) } else { assert(false); error << "Failed to obtain buffer" << endl; - return Ref(); + return BufferRef(); } } try_head->_next = NULL; - return Ref(try_head); + return BufferRef(try_head); } -BufferFactory::Ref +BufferRef BufferFactory::silent_buffer() { return _silent_buffer; } -BufferFactory::Ref +BufferRef BufferFactory::create(LV2_URID type, uint32_t capacity) { ThreadManager::assert_not_thread(THREAD_PROCESS); @@ -152,7 +152,7 @@ BufferFactory::create(LV2_URID type, uint32_t capacity) buffer->atom()->type = type; assert(buffer); - return Ref(buffer); + return BufferRef(buffer); } void -- cgit v1.2.1