From fc3c50063f659584b2145addab8236a479a031b7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 18 May 2009 19:53:51 +0200 Subject: Von sigc++ auf boost-signals migriert --- src/Common/ActionManager.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/Common/ActionManager.cpp') diff --git a/src/Common/ActionManager.cpp b/src/Common/ActionManager.cpp index 166001a..fc3c034 100644 --- a/src/Common/ActionManager.cpp +++ b/src/Common/ActionManager.cpp @@ -23,8 +23,6 @@ #include #include -#include - namespace Mad { namespace Common { @@ -39,7 +37,7 @@ void ActionManager::doInit() { fcntl(notifyPipe[0], F_SETFL, fcntl(notifyPipe[0], F_GETFL) | O_NONBLOCK); fcntl(notifyPipe[1], F_SETFL, fcntl(notifyPipe[1], F_GETFL) | O_NONBLOCK); - Net::FdManager::get()->registerFd(notifyPipe[0], sigc::hide(sigc::mem_fun(this, &ActionManager::run)), POLLIN); + Net::FdManager::get()->registerFd(notifyPipe[0], boost::bind(&ActionManager::run, this), POLLIN); } void ActionManager::doDeinit() { @@ -65,7 +63,7 @@ void ActionManager::run() { return; } - sigc::slot action = actions.front(); + boost::function0 action = actions.front(); actions.pop(); sigprocmask(SIG_SETMASK, &oldset, 0); @@ -74,7 +72,7 @@ void ActionManager::run() { } } -void ActionManager::add(const sigc::slot &action) { +void ActionManager::add(const boost::function0 &action) { sigset_t set, oldset; sigfillset(&set); sigprocmask(SIG_SETMASK, &set, &oldset); -- cgit v1.2.3