diff options
author | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
commit | 8ba6bb943889bfdd58cf4a971a152041c1199cfe (patch) | |
tree | 91fbe8577e6d01070aa81f532ddd8102db1476f5 /src/engine/BufferFactory.cpp | |
parent | 3cd3bfe5079f84fafb7dc217f5393d6ba947109c (diff) | |
download | ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.gz ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.bz2 ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.zip |
Put engine code in new Ingen::Engine namespace.
Put core interfaces in Ingen namespace (not Ingen::Shared).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3159 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/BufferFactory.cpp')
-rw-r--r-- | src/engine/BufferFactory.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/engine/BufferFactory.cpp b/src/engine/BufferFactory.cpp index 33b2a571..9eb51b54 100644 --- a/src/engine/BufferFactory.cpp +++ b/src/engine/BufferFactory.cpp @@ -29,12 +29,12 @@ using namespace Raul; namespace Ingen { +namespace Engine { -using namespace Shared; - -BufferFactory::BufferFactory(Engine& engine, SharedPtr<Shared::LV2URIMap> a_uris) +BufferFactory::BufferFactory(Engine& engine, + SharedPtr<Ingen::Shared::LV2URIMap> uris) : _engine(engine) - , _uris(a_uris) + , _uris(uris) , _silent_buffer(NULL) { assert(_uris); @@ -85,7 +85,7 @@ BufferFactory::default_buffer_size(PortType type) } BufferFactory::Ref -BufferFactory::get(Shared::PortType type, size_t size, bool force_create) +BufferFactory::get(PortType type, size_t size, bool force_create) { Raul::AtomicPtr<Buffer>& head_ptr = free_list(type); Buffer* try_head = NULL; @@ -115,7 +115,7 @@ BufferFactory::get(Shared::PortType type, size_t size, bool force_create) } BufferFactory::Ref -BufferFactory::create(Shared::PortType type, size_t size) +BufferFactory::create(PortType type, size_t size) { ThreadManager::assert_not_thread(THREAD_PROCESS); @@ -157,4 +157,5 @@ BufferFactory::recycle(Buffer* buf) } while (!head_ptr.compare_and_exchange(try_head, buf)); } +} // namespace Engine } // namespace Ingen |