diff options
| author | diondokter <[email protected]> | 2025-05-01 09:44:39 +0200 |
|---|---|---|
| committer | diondokter <[email protected]> | 2025-05-01 09:44:39 +0200 |
| commit | f713f170a1a38a3eaa48ac535b211370f71d39aa (patch) | |
| tree | 1a696bd6ecc94b363f59fccb3612409cb89a0180 /embassy-sync/src/waitqueue/multi_waker.rs | |
| parent | ae59d0acf4f7c7be028b1246aaa8033015985154 (diff) | |
| parent | 52e4c7c30c5f59d10afbef2447b96da68f4be0bc (diff) | |
Merge branch 'main' into configurable-bank-support
Diffstat (limited to 'embassy-sync/src/waitqueue/multi_waker.rs')
| -rw-r--r-- | embassy-sync/src/waitqueue/multi_waker.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-sync/src/waitqueue/multi_waker.rs b/embassy-sync/src/waitqueue/multi_waker.rs index 0e520bf40..0384d6bed 100644 --- a/embassy-sync/src/waitqueue/multi_waker.rs +++ b/embassy-sync/src/waitqueue/multi_waker.rs | |||
| @@ -3,6 +3,8 @@ use core::task::Waker; | |||
| 3 | use heapless::Vec; | 3 | use heapless::Vec; |
| 4 | 4 | ||
| 5 | /// Utility struct to register and wake multiple wakers. | 5 | /// Utility struct to register and wake multiple wakers. |
| 6 | /// Queue of wakers with a maximum length of `N`. | ||
| 7 | /// Intended for waking multiple tasks. | ||
| 6 | pub struct MultiWakerRegistration<const N: usize> { | 8 | pub struct MultiWakerRegistration<const N: usize> { |
| 7 | wakers: Vec<Waker, N>, | 9 | wakers: Vec<Waker, N>, |
| 8 | } | 10 | } |
