Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun-Sethu committed Aug 26, 2024
1 parent ceeb356 commit 2fca729
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/timing/include/timing/timing_poll_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@

namespace Timing {
class PollSource : public Scheduler::IPollSource {
public:
PollSource();
public:
PollSource();

auto schedule(std::chrono::milliseconds expiry, Scheduler::Job task) -> void;
auto poll_frequency() -> std::chrono::milliseconds override;
auto poll() -> std::vector<Scheduler::Job> override;
[[nodiscard]] auto poll_frequency() -> std::chrono::milliseconds override;
[[nodiscard]] auto poll() -> std::vector<Scheduler::Job> override;

private:
SpinLock spinlock;
HierarchicalTimingWheel<Scheduler::Job> wheel;
auto schedule(std::chrono::milliseconds expiry, Scheduler::Job task) -> void;

private:
SpinLock spinlock;
HierarchicalTimingWheel<Scheduler::Job> wheel;
};
}

0 comments on commit 2fca729

Please sign in to comment.