X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FIntervalTimer.cc;h=f0dafd14639d1d49d39f729685e7f658f8dc7f02;hb=2da517bbcdb2af10d2322fc762ca27774b53b435;hp=287d88ae8fbc70ddd9fab65349fc6a065799c3be;hpb=0327b3f303ea2a61d44a30bfaac022874dcf2a0d;p=senf.git diff --git a/PPI/IntervalTimer.cc b/PPI/IntervalTimer.cc index 287d88a..f0dafd1 100644 --- a/PPI/IntervalTimer.cc +++ b/PPI/IntervalTimer.cc @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -27,7 +27,7 @@ //#include "IntervalTimer.ih" // Custom includes -#include "Scheduler/Scheduler.hh" +#include "../Scheduler/Scheduler.hh" #include "EventManager.hh" //#include "IntervalTimer.mpp" @@ -49,14 +49,13 @@ prefix_ void senf::ppi::IntervalTimer::v_enable() prefix_ void senf::ppi::IntervalTimer::v_disable() { - Scheduler::instance().cancelTimeout(id_); - id_ = 0; + timer_.disable(); } prefix_ void senf::ppi::IntervalTimer::schedule() { info_.expected = info_.intervalStart + ( interval_ * (info_.number+1) ) / eventsPerInterval_; - id_ = Scheduler::instance().timeout(info_.expected, boost::bind(&IntervalTimer::cb,this)); + timer_.timeout(info_.expected); } prefix_ void senf::ppi::IntervalTimer::cb()