Added scheduler accessor for deadline handler

This commit is contained in:
Pavel Kirienko
2014-03-08 13:20:18 +04:00
parent 2fa3f2c7c7
commit 5559e7e447
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@ public:
bool isRunning() const;
uint64_t getMonotonicDeadline() const { return monotonic_deadline_; }
Scheduler& getScheduler() const { return scheduler_; }
};
+1
View File
@@ -40,6 +40,7 @@ public:
using MonotonicDeadlineHandler::stop;
using MonotonicDeadlineHandler::isRunning;
using MonotonicDeadlineHandler::getMonotonicDeadline;
using MonotonicDeadlineHandler::getScheduler;
Timer(Scheduler& scheduler)
: MonotonicDeadlineHandler(scheduler)