From e867b85118f275a263ef1a3162567d90be62d0ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Apr 2011 21:29:17 +0000 Subject: Sort fields by name. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3154 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Engine.cpp | 20 +++++++++----------- src/engine/Engine.hpp | 16 ++++++++-------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index 163ac0a9..8585b5a3 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -57,15 +57,14 @@ using namespace Shared; bool ThreadManager::single_threaded = true; Engine::Engine(Ingen::Shared::World* a_world) - : _world(a_world) - , _maid(new Raul::Maid(maid_queue_size)) - , _post_processor(new PostProcessor(*this, post_processor_queue_size)) - , _broadcaster(new ClientBroadcaster()) - , _node_factory(new NodeFactory(a_world)) - , _message_context(new MessageContext(*this)) + : _broadcaster(new ClientBroadcaster()) , _buffer_factory(new BufferFactory(*this, a_world->uris())) , _control_bindings(new ControlBindings(*this)) - , _quit_flag(false) + , _maid(new Raul::Maid(maid_queue_size)) + , _message_context(new MessageContext(*this)) + , _node_factory(new NodeFactory(a_world)) + , _post_processor(new PostProcessor(*this, post_processor_queue_size)) + , _world(a_world) { if (a_world->store()) { assert(PtrCast(a_world->store())); @@ -84,11 +83,10 @@ Engine::~Engine() if ( ! PtrCast(i->second)->parent() ) i->second.reset(); - delete _broadcaster; - delete _node_factory; - delete _post_processor; - delete _maid; + delete _post_processor; + delete _node_factory; + delete _broadcaster; munlockall(); } diff --git a/src/engine/Engine.hpp b/src/engine/Engine.hpp index ebebc8c6..e1854a8b 100644 --- a/src/engine/Engine.hpp +++ b/src/engine/Engine.hpp @@ -95,14 +95,14 @@ public: */ virtual void process_events(ProcessContext& context); - virtual BufferFactory* buffer_factory() const { return _buffer_factory; } virtual ClientBroadcaster* broadcaster() const { return _broadcaster; } + virtual BufferFactory* buffer_factory() const { return _buffer_factory; } virtual ControlBindings* control_bindings() const { return _control_bindings; } virtual Driver* driver() const { return _driver.get(); } + virtual Raul::Maid* maid() const { return _maid; } virtual MessageContext* message_context() const { return _message_context; } virtual NodeFactory* node_factory() const { return _node_factory; } virtual PostProcessor* post_processor() const { return _post_processor; } - virtual Raul::Maid* maid() const { return _maid; } virtual Shared::World* world() const { return _world; } virtual SharedPtr engine_store() const; @@ -111,15 +111,15 @@ private: typedef std::set< SharedPtr > EventSources; EventSources _event_sources; - Ingen::Shared::World* _world; - SharedPtr _driver; - Raul::Maid* _maid; - PostProcessor* _post_processor; ClientBroadcaster* _broadcaster; - NodeFactory* _node_factory; - MessageContext* _message_context; BufferFactory* _buffer_factory; ControlBindings* _control_bindings; + SharedPtr _driver; + Raul::Maid* _maid; + MessageContext* _message_context; + NodeFactory* _node_factory; + PostProcessor* _post_processor; + Shared::World* _world; bool _quit_flag; }; -- cgit v1.2.1