Implement async dispatcher #221

This commit is contained in:
Eduardo Bart
2013-03-04 18:56:22 -03:00
parent c452e74e0c
commit 0be7bd5360
13 changed files with 274 additions and 70 deletions

View File

@@ -27,6 +27,7 @@
#include <framework/core/modulemanager.h>
#include <framework/core/eventdispatcher.h>
#include <framework/core/configmanager.h>
#include "asyncdispatcher.h"
#include <framework/luaengine/luainterface.h>
#include <framework/platform/crashhandler.h>
#include <framework/platform/platform.h>
@@ -76,6 +77,8 @@ void Application::init(std::vector<std::string>& args)
// process args encoding
g_platform.processArgs(args);
g_asyncDispatcher.init();
std::string startupOptions;
for(uint i=1;i<args.size();++i) {
const std::string& arg = args[i];
@@ -109,6 +112,8 @@ void Application::deinit()
// poll remaining events
poll();
g_asyncDispatcher.terminate();
// disable dispatcher events
g_dispatcher.shutdown();
}