// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// 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
// it under the terms of the GNU General Public License as published by
}
prefix_ unsigned senf::Scheduler::timeout(ClockService::clock_type timeout,
- TimerCallback const & cb)
+ SimpleCallback const & cb)
{
+ ++ timerIdCounter_;
TimerMap::iterator i (
timerMap_.insert(std::make_pair(timerIdCounter_,
TimerSpec(timeout,cb,timerIdCounter_))).first);
timerQueue_.push(i);
- return timerIdCounter_++;
+ return timerIdCounter_;
}
prefix_ void senf::Scheduler::cancelTimeout(unsigned id)
terminate_ = true;
}
+prefix_ senf::ClockService::clock_type senf::Scheduler::eventTime()
+ const
+{
+ return eventTime_;
+}
+
prefix_ int senf::retrieve_filehandle(int fd)
{
return fd;