diff options
| author | Ulf Lilleengen <[email protected]> | 2025-08-20 06:54:29 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-20 06:54:29 +0000 |
| commit | 63ade389303ab4f6fe9d34211629b02c16e9bb11 (patch) | |
| tree | 471e6889bd8eb499c2307655e7ffe21f8a2bf5a4 /embassy-sync/src/waitqueue | |
| parent | b5887b252ae2b8181de1948af2f2137d56bd9e76 (diff) | |
| parent | 368738bef44dbba1a178383d878a6d9423b1ccd9 (diff) | |
Merge pull request #4570 from U007D/sync-debug
`embassy-sync` `Debug` impls
Diffstat (limited to 'embassy-sync/src/waitqueue')
| -rw-r--r-- | embassy-sync/src/waitqueue/atomic_waker_turbo.rs | 1 | ||||
| -rw-r--r-- | embassy-sync/src/waitqueue/multi_waker.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/embassy-sync/src/waitqueue/atomic_waker_turbo.rs b/embassy-sync/src/waitqueue/atomic_waker_turbo.rs index c06b83056..a45adeab8 100644 --- a/embassy-sync/src/waitqueue/atomic_waker_turbo.rs +++ b/embassy-sync/src/waitqueue/atomic_waker_turbo.rs | |||
| @@ -7,6 +7,7 @@ use core::task::Waker; | |||
| 7 | /// If a waker is registered, registering another waker will replace the previous one without waking it. | 7 | /// If a waker is registered, registering another waker will replace the previous one without waking it. |
| 8 | /// The intended use case is to wake tasks from interrupts. Therefore, it is generally not expected, | 8 | /// The intended use case is to wake tasks from interrupts. Therefore, it is generally not expected, |
| 9 | /// that multiple tasks register try to register a waker simultaneously. | 9 | /// that multiple tasks register try to register a waker simultaneously. |
| 10 | #[derive(Debug)] | ||
| 10 | pub struct AtomicWaker { | 11 | pub struct AtomicWaker { |
| 11 | waker: AtomicPtr<()>, | 12 | waker: AtomicPtr<()>, |
| 12 | } | 13 | } |
diff --git a/embassy-sync/src/waitqueue/multi_waker.rs b/embassy-sync/src/waitqueue/multi_waker.rs index 1c05f8eaf..56c0cd1b2 100644 --- a/embassy-sync/src/waitqueue/multi_waker.rs +++ b/embassy-sync/src/waitqueue/multi_waker.rs | |||
| @@ -5,6 +5,7 @@ use heapless::Vec; | |||
| 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`. | 6 | /// Queue of wakers with a maximum length of `N`. |
| 7 | /// Intended for waking multiple tasks. | 7 | /// Intended for waking multiple tasks. |
| 8 | #[derive(Debug)] | ||
| 8 | pub struct MultiWakerRegistration<const N: usize> { | 9 | pub struct MultiWakerRegistration<const N: usize> { |
| 9 | wakers: Vec<Waker, N>, | 10 | wakers: Vec<Waker, N>, |
| 10 | } | 11 | } |
