X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FScheduler.hh;h=babc1997e4883d56c9c89d6fee7359649b84a9c8;hb=82ad2ed94c12c3e53097fef92978de8c28239fab;hp=a3e1295db7d4d7c65480a5ef35d2d75e74c907aa;hpb=e8b91aa6a817af6d9a3714e7b66be6c0d6b0a4e5;p=senf.git diff --git a/Scheduler/Scheduler.hh b/Scheduler/Scheduler.hh index a3e1295..babc199 100644 --- a/Scheduler/Scheduler.hh +++ b/Scheduler/Scheduler.hh @@ -35,6 +35,7 @@ #include #include #include "ClockService.hh" +#include "../Utils/Logger/Target.hh" //#include "scheduler.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -151,9 +152,7 @@ namespace senf { ///< Add timeout event /**< \param[in] timeout timeout in nanoseconds \param[in] cb callback to call after \a timeout - milliseconds - \todo Return some kind of handle/pointer and add - support to update or revoke a timeout */ + milliseconds */ void cancelTimeout(unsigned id); @@ -241,6 +240,17 @@ namespace senf { */ int retrieve_filehandle(int fd); + /** \brief Scheduler specific time source for Utils/Logger framework + + This time source may be used to provide timing information for log messages within the + Utils/Logger framework. This time source will use Scheduler::eventTime() to provide timing + information. + */ + struct SchedulerLogTimeSource : public senf::log::TimeSource + { + boost::posix_time::ptime operator()() const; + }; + } ///////////////////////////////hh.e////////////////////////////////////////