summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-16 21:29:17 +0000
committerDavid Robillard <d@drobilla.net>2011-04-16 21:29:17 +0000
commite867b85118f275a263ef1a3162567d90be62d0ac (patch)
treee8eb66b2de029de8ca4fd43586cfc1158370796d
parent88436621c26a0ae345fdb2755c3896854e66b26c (diff)
downloadingen-e867b85118f275a263ef1a3162567d90be62d0ac.tar.gz
ingen-e867b85118f275a263ef1a3162567d90be62d0ac.tar.bz2
ingen-e867b85118f275a263ef1a3162567d90be62d0ac.zip
Sort fields by name.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3154 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/engine/Engine.cpp20
-rw-r--r--src/engine/Engine.hpp16
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<EngineStore>(a_world->store()));
@@ -84,11 +83,10 @@ Engine::~Engine()
if ( ! PtrCast<GraphObjectImpl>(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<EngineStore> engine_store() const;
@@ -111,15 +111,15 @@ private:
typedef std::set< SharedPtr<EventSource> > EventSources;
EventSources _event_sources;
- Ingen::Shared::World* _world;
- SharedPtr<Driver> _driver;
- Raul::Maid* _maid;
- PostProcessor* _post_processor;
ClientBroadcaster* _broadcaster;
- NodeFactory* _node_factory;
- MessageContext* _message_context;
BufferFactory* _buffer_factory;
ControlBindings* _control_bindings;
+ SharedPtr<Driver> _driver;
+ Raul::Maid* _maid;
+ MessageContext* _message_context;
+ NodeFactory* _node_factory;
+ PostProcessor* _post_processor;
+ Shared::World* _world;
bool _quit_flag;
};