Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions embassy-time-queue-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- next-header -->
## Unreleased - ReleaseDate

- Fix usage of never ending timers

## 0.3.0 - 2025-08-26

## 0.2.1 - 2025-08-26
Expand Down
4 changes: 4 additions & 0 deletions embassy-time-queue-utils/src/queue_integrated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ impl Queue {
// Remove it
prev.set(item.next.get());
item.next.set(None);
// Presence of a waker is used by schedule_wake to determine
// if the item is part of the queue or not,
// so ensure there is no waker for items removed from the queue.
item.waker = None;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment isn't very clear, the problem was schedule_wake uses the presence of a waker to determine if an item is part of the queue or not, and that invariant wasn't maintained.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, reading this comment again now, I realize it wasn't very clear.
Updated it now. It is hopefully clearer.

}
}
}
Expand Down