mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-12 06:33:34 +08:00
Added scheduler accessor for deadline handler
This commit is contained in:
@@ -37,6 +37,7 @@ public:
|
||||
bool isRunning() const;
|
||||
|
||||
uint64_t getMonotonicDeadline() const { return monotonic_deadline_; }
|
||||
Scheduler& getScheduler() const { return scheduler_; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ public:
|
||||
using MonotonicDeadlineHandler::stop;
|
||||
using MonotonicDeadlineHandler::isRunning;
|
||||
using MonotonicDeadlineHandler::getMonotonicDeadline;
|
||||
using MonotonicDeadlineHandler::getScheduler;
|
||||
|
||||
Timer(Scheduler& scheduler)
|
||||
: MonotonicDeadlineHandler(scheduler)
|
||||
|
||||
Reference in New Issue
Block a user