X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FScheduler.cc;h=adbb6a6b5f0fe5d3101084f4ee4f081973a23acb;hb=82ad2ed94c12c3e53097fef92978de8c28239fab;hp=c758ea9ca30658542562c5aa6509c3460ccaad4c;hpb=53a3d02e7fde841badf42555eba87ccef4566073;p=senf.git diff --git a/Scheduler/Scheduler.cc b/Scheduler/Scheduler.cc index c758ea9..adbb6a6 100644 --- a/Scheduler/Scheduler.cc +++ b/Scheduler/Scheduler.cc @@ -78,7 +78,7 @@ // Custom includes #include #include -#include "Utils/Exception.hh" +#include "../Utils/Exception.hh" static const int EPollInitialSize = 16; @@ -201,8 +201,8 @@ prefix_ void senf::Scheduler::process() i->second.cb(); else break; - timerMap_.erase(i); timerQueue_.pop(); + timerMap_.erase(i); } if (events <= 0) @@ -243,6 +243,15 @@ prefix_ void senf::Scheduler::process() } } +/////////////////////////////////////////////////////////////////////////// +// senf::SchedulerLogTimeSource + +prefix_ boost::posix_time::ptime senf::SchedulerLogTimeSource::operator()() + const +{ + return ClockService::abstime(Scheduler::instance().eventTime()); +} + ///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_