aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/waitqueue
Commit message (Collapse)AuthorAgeFilesLines
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-1/+1
|
* chore: add more `Debug` impls to `embassy-sync`, particularly on `OnceLock`Curly2025-08-192-0/+2
| | | | All tests green
* embassy-sync: Update `MultiWakerRegistration::register` docsBrezak2025-08-011-1/+3
| | | | In 3081ecf301a54f8ed3d0f72350dd21f8ac9e1b18 `register` was changed to clear the buffer when it's full, but the docs weren't updated.
* docs: extend the waker documentationckrenslehner2025-04-264-0/+12
|
* Generalize AtomicWakerDániel Buga2024-11-221-10/+32
|
* embassy-sync: fixed some clippy warningsOliver Rockstedt2024-05-211-1/+1
|
* sync: do will_wake check in MultiWakerRegistration.Dario Nieuwenhuis2023-05-261-12/+37
|
* executor,sync: add support for turbo-wakers.Dario Nieuwenhuis2023-03-304-42/+77
| | | | | | | | | | | | | | | | | | | | | | | | This is a `core` patch to make wakers 1 word (the task pointer) instead of 2 (task pointer + vtable). It allows having the "waker optimization" we had a while back on `WakerRegistration/AtomicWaker`, but EVERYWHERE, without patching all crates. Advantages: - Less memory usage. - Faster. - `AtomicWaker` can actually use atomics to load/store the waker, No critical section needed. - No `dyn` call, which means `cargo-call-stack` can now see through wakes. Disadvantages: - You have to patch `core`... - Breaks all executors and other things that create wakers, unless they opt in to using the new `from_ptr` API. How to use: - Run this shell script to patch `core`. https://gist.github.com/Dirbaio/c67da7cf318515181539122c9d32b395 - Enable `build-std` - Enable `build-std-features = core/turbowakers` - Enable feature `turbowakers` in `embassy-executor`, `embassy-sync`. - Make sure you have no other crate creating wakers other than `embassy-executor`. These will panic at runtime. Note that the patched `core` is equivalent to the unpached one when the `turbowakers` feature is not enabled, so it should be fine to leave it there.
* Derive Default for WakerRegistrationMatt Johnston2022-11-061-1/+1
| | | | This simplifies creating arrays of WakerRegistrations
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-223-0/+132