replaced tabs to spaces
[senf.git] / Scheduler / Scheduler.cci
index a727400..b638dcd 100644 (file)
@@ -1,9 +1,9 @@
 // $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
@@ -38,13 +38,14 @@ prefix_ senf::Scheduler::Scheduler & senf::Scheduler::instance()
 }
 
 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)