// $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 <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
//#include "IdleEvent.ih"
// Custom includes
-#include "Scheduler/Scheduler.hh"
+#include "../Scheduler/Scheduler.hh"
+#include "../Utils/Logger/SenfLog.hh"
//#include "IdleEvent.mpp"
#define prefix_
prefix_ void senf::ppi::IdleEvent::v_enable()
{
- id_ = Scheduler::instance().timeout(manager().now(), boost::bind(&IdleEvent::cb,this));
+ timer_.timeout(manager().now());
}
prefix_ void senf::ppi::IdleEvent::v_disable()
{
- Scheduler::instance().cancelTimeout(id_);
- id_ = 0;
+ timer_.disable();
}
prefix_ void senf::ppi::IdleEvent::cb()