Skip to content

Commit

Permalink
Fix for the "next_deadline" bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Aug 23, 2024
1 parent c9c2fa8 commit 83b2e2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## TODOs:

- [ ] Search for...
- [ ] "dyshlo"
- [ ] "telega"
- [ ] "serge"

- [ ] Replace "serges147" with proper organization name when ready
2 changes: 1 addition & 1 deletion include/embedded_scheduler/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class EventLoop final
SpinResult<Clock> result{.next_deadline = time_point::max(),
.worst_lateness = duration::zero(),
.approx_now = time_point::min()};
if (tree_.empty())
if (tree_.empty()) [[unlikely]]
{
result.approx_now = Clock::now();
return result;
Expand Down

0 comments on commit 83b2e2c

Please sign in to comment.