diff options
author | David Robillard <d@drobilla.net> | 2012-04-23 02:32:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-23 02:32:33 +0000 |
commit | 8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc (patch) | |
tree | 2dff94cd90ca026f2f4e0e490da03762cc924680 /src/server/BufferFactory.cpp | |
parent | 8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef (diff) | |
download | ingen-8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc.tar.gz ingen-8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc.tar.bz2 ingen-8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc.zip |
Localise buffer reference stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4252 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/BufferFactory.cpp')
-rw-r--r-- | src/server/BufferFactory.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<Buffer>& 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 |