From 7234fe326d16d6bf9f4374a09ddc6ef790e6723f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 18 Jun 2009 22:03:02 +0200 Subject: Globale Variablen durch Application-Klasse ersetzt --- src/Core/Signals/Signal0.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Core/Signals/Signal0.h') diff --git a/src/Core/Signals/Signal0.h b/src/Core/Signals/Signal0.h index ccfb548..c01a82a 100644 --- a/src/Core/Signals/Signal0.h +++ b/src/Core/Signals/Signal0.h @@ -21,6 +21,7 @@ #define MAD_CORE_SIGNALS_SIGNAL0_H_ #include "GenericSignal.h" +#include "../Application.h" #include "../ThreadManager.h" #include @@ -31,11 +32,13 @@ namespace Signals { class Signal0 : public GenericSignal > { public: + Signal0(Application *application) : GenericSignal >(application) {} + void emit() { boost::lock_guard lock(mutex); for(std::map::iterator handler = handlers.begin(); handler != handlers.end(); ++handler) - ThreadManager::get()->pushWork(handler->second); + getApplication()->getThreadManager()->pushWork(handler->second); } }; -- cgit v1.2.3