docs and changelog

This commit is contained in:
Robin Mueller 2025-11-18 17:27:30 +01:00 committed by Henrik Tjäder
parent 148c4b3cc0
commit 5fe2bceb6c
2 changed files with 6 additions and 0 deletions

View file

@ -7,6 +7,10 @@ For each category, _Added_, _Changed_, _Fixed_ add new entries at the top!
## [Unreleased] ## [Unreleased]
### Fixed
- Const check for `channel::Channel` size smaller than 256 is now properly evaluated.
### Changed ### Changed
- Un-hide lifetimes of output type in `Signal::split` to resolve a new warning. - Un-hide lifetimes of output type in `Signal::split` to resolve a new warning.

View file

@ -27,6 +27,8 @@ type WaitQueue = DoublyLinkedList<WaitQueueData>;
/// ///
/// This channel uses critical sections, however there are extremely small and all `memcpy` /// This channel uses critical sections, however there are extremely small and all `memcpy`
/// operations of `T` are done without critical sections. /// operations of `T` are done without critical sections.
///
/// Right now, the size of the queue `N` is limited to 255 elements.
pub struct Channel<T, const N: usize> { pub struct Channel<T, const N: usize> {
// Here are all indexes that are not used in `slots` and ready to be allocated. // Here are all indexes that are not used in `slots` and ready to be allocated.
freeq: UnsafeCell<Deque<u8, N>>, freeq: UnsafeCell<Deque<u8, N>>,