aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/semaphore.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-2/+2
|
* chore: add more `Debug` impls to `embassy-sync`, particularly on `OnceLock`Curly2025-08-191-0/+6
| | | | All tests green
* Fix `FairSemaphore` bugsAlex Moon2024-04-031-34/+102
| | | | | - `acquire` and `acquire_all` futures were `!Send`, even for `M: RawMutex + Send` due to the captured `Cell`. - If multiple `acquire` tasks were queued, waking the first would not wake the second, even if there were permits remaining after the first `acquire` completed.
* Semaphore synchronization primitiveAlex Moon2024-03-301-0/+704
This provides both a "greedy" and "fair" async semaphore implementation.