From 48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Sep 2006 03:58:00 +0000 Subject: De-singleton-ified Engine Slight rework of Responder/ClientKey/ClientInterface for Requests git-svn-id: http://svn.drobilla.net/lad/ingen@119 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/server/main.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/progs/server') diff --git a/src/progs/server/main.cpp b/src/progs/server/main.cpp index 8ded37b7..ec1788f0 100644 --- a/src/progs/server/main.cpp +++ b/src/progs/server/main.cpp @@ -32,6 +32,9 @@ using std::cout; using std::endl; using std::cerr; +Ingen::Engine* engine; + + void catch_int(int) { @@ -39,7 +42,7 @@ catch_int(int) signal(SIGTERM, catch_int); std::cout << "[Main] Ingen interrupted." << std::endl; - Ingen::Engine::instance().quit(); + engine->quit(); } @@ -132,20 +135,19 @@ main(int argc, char** argv) Ingen::set_denormal_flags(); - Ingen::Engine::instantiate(args_info.port_arg); + engine = new Ingen::Engine(args_info.port_arg); #ifdef HAVE_LASH Ingen::lash_driver = new Ingen::LashDriver(Ingen::om, lash_args); #endif - Ingen::Engine::instance().main(); + engine->main(); #ifdef HAVE_LASH delete Ingen::lash_driver; #endif - // FIXME: leak - //delete Ingen::om; + delete engine; } return ret; -- cgit v1.2.1