Skip to content

Commit 4ff1ff7

Browse files
robamuAfoHT
authored andcommitted
docs and changelog
1 parent 1bc58b4 commit 4ff1ff7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

rtic-sync/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ For each category, _Added_, _Changed_, _Fixed_ add new entries at the top!
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Const check for `channel::Channel` size smaller than 256 is now properly evaluated.
13+
1014
### Changed
1115

1216
- Un-hide lifetimes of output type in `Signal::split` to resolve a new warning.

rtic-sync/src/channel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ type WaitQueue = DoublyLinkedList<WaitQueueData>;
2727
///
2828
/// This channel uses critical sections, however there are extremely small and all `memcpy`
2929
/// operations of `T` are done without critical sections.
30+
///
31+
/// Right now, the size of the queue `N` is limited to 255 elements.
3032
pub struct Channel<T, const N: usize> {
3133
// Here are all indexes that are not used in `slots` and ready to be allocated.
3234
freeq: UnsafeCell<Deque<u8, N>>,

0 commit comments

Comments
 (0)