X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FIntervalTimer.cc;h=f0dafd14639d1d49d39f729685e7f658f8dc7f02;hb=55d09e34a5b9a9c7af23cc5ecb0ab79d58757a2d;hp=f924c6ed42cc7f0db3593e65535a76fd1c14d953;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/PPI/IntervalTimer.cc b/PPI/IntervalTimer.cc index f924c6e..f0dafd1 100644 --- a/PPI/IntervalTimer.cc +++ b/PPI/IntervalTimer.cc @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// 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 @@ -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()