aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src
Commit message (Collapse)AuthorAgeFilesLines
* embassy-sync: Don't drop wakers in Signal::resetMatthew Tran2025-08-281-1/+1
|
* chore: add more `Debug` impls to `embassy-sync`, particularly on `OnceLock`Curly2025-08-1918-0/+64
| | | | All tests green
* fix: prepare embassy-sync 0.7.1 releaseUlf Lilleengen2025-08-121-0/+5
| | | | * Add newtype for moved type to preserve API compat
* Merge pull request #4485 from AnthonyGrondin/feat/lazy-lock-mutUlf Lilleengen2025-08-081-0/+15
|\ | | | | | | feat(embassy-sync): Add `get_mut` for `LazyLock`
| * feat(embassy-sync): Add `get_mut` for `LazyLock`Anthony Grondin2025-07-301-0/+15
| |
* | 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.
* Merge pull request #4385 from us-irs/some-minor-doc-fixesJames Munns2025-07-094-8/+8
|\ | | | | | | some minor documentation fixes
| * Update embassy-sync/src/pubsub/publisher.rsRobin Mueller2025-07-091-1/+1
| | | | | | Co-authored-by: James Munns <[email protected]>
| * Update embassy-sync/src/priority_channel.rsRobin Mueller2025-07-091-1/+1
| | | | | | Co-authored-by: James Munns <[email protected]>
| * Update embassy-sync/src/priority_channel.rsRobin Mueller2025-07-091-1/+1
| | | | | | Co-authored-by: James Munns <[email protected]>
| * Update embassy-sync/src/mutex.rsRobin Mueller2025-07-091-1/+1
| | | | | | Co-authored-by: James Munns <[email protected]>
| * some minor documentation fixesRobin Mueller2025-07-094-8/+8
| |
* | add embassy sync channel example for message passing between interrupt and taskRobin Mueller2025-07-091-0/+25
|/
* Update Rust nightly, stable.Dario Nieuwenhuis2025-07-041-4/+4
|
* fix missing sync boundsMelvin Wang2025-06-182-2/+7
|
* Remove futures-util where unnecessaryDániel Buga2025-06-162-3/+3
|
* Rename SendableDynamicReceiver to SendDynamicReceiverCorey Schuhen2025-05-291-7/+7
|
* Merge pull request #4262 from cschuhen/send_on_dynamic_channelUlf Lilleengen2025-05-281-0/+106
|\ | | | | | | Enable Sync and Send for DynamicSender and DynamicReceiver.
| * Make Sync capable versions of DynamicSender and DynamicReceiver.Corey Schuhen2025-05-281-0/+106
| | | | | | | | | | | | | | | | DynamicSender and DynamicReceiver, just seem to be a fat pointer to a Channel which is already protected by it's own Mutex already. In fact, you can share the Channel already betwen threads and create Dynamic*er's in the target threads. It should be safe to share the Dynamic*er's directly. Can only be used when Mutex M of channel supoorts Sync.
* | feat: add support for channel peekUlf Lilleengen2025-05-282-0/+142
|/ | | | | | | Add support for peeking into the front of the channel if the value implements Clone. This can be useful in single-receiver situations where you don't want to remove the item from the queue until you've successfully processed it.
* clarify docs for signal and watchJuliDi2025-05-042-4/+5
|
* docs: extend the waker documentationckrenslehner2025-04-264-0/+12
|
* Merge pull request #3932 from AlixANNERAUD/add-rwlockDario Nieuwenhuis2025-04-142-0/+388
|\ | | | | Add RwLock to embassy-sync
| * Refactor RwLock implementation by removing unused map methods and cleaning ↵Alix ANNERAUD2025-04-121-237/+1
| | | | | | | | up code for improved readability
| * Enhance RwLock documentation and add map methods for read and write guards ↵Alix ANNERAUD2025-03-171-6/+57
| | | | | | | | to improve data access flexibility
| * Refactor RwLock implementation to support try_read and try_write methods, ↵Alix ANNERAUD2025-03-171-17/+253
| | | | | | | | enhancing lock acquisition flexibility
| * Remove blocking read-write lock module and its references and refactor ↵Alix ANNERAUD2025-03-164-536/+52
| | | | | | | | rwlock for a simpler approach
| * Remove unnecessary comment in CriticalSectionRawRwLock implementationAlix ANNERAUD2025-02-281-2/+0
| |
| * Refactor imports in raw read-write lock module for clarityAlix ANNERAUD2025-02-281-1/+2
| |
| * Remove obsolete `raw_rwlock.rs` fileAlix ANNERAUD2025-02-281-0/+0
| |
| * Implement read-write lock methods in CriticalSectionRawRwLock and update testsAlix ANNERAUD2025-02-282-7/+52
| |
| * Fix module references in blocking read-write lock implementationAlix ANNERAUD2025-02-282-18/+18
| |
| * Refactor blocking read-write lock module structure and improve assertions in ↵Alix ANNERAUD2025-02-283-129/+265
| | | | | | | | ThreadModeRawRwLock
| * Add blocking read-write lock implementation and remove obsolete testsAlix ANNERAUD2025-02-284-86/+381
| |
| * Add `RawRwLock` trait and `RawRwLockImpl` struct implementationAlix ANNERAUD2025-02-282-86/+86
| | | | | | | | | | | | | | | | * Implement `RawRwLock` trait with methods for read and write locking * Implement `RawRwLockImpl` struct with atomic state and waker * Implement `RawRwLockImpl::lock_read`, `RawRwLockImpl::try_lock_read`, and `RawRwLockImpl::unlock_read` methods * Implement `RawRwLockImpl::lock_write`, `RawRwLockImpl::try_lock_write`, and `RawRwLockImpl::unlock_write` methods
| * (no commit message)Alix ANNERAUD2025-02-282-142/+231
| |
| * Add RwLock to embassy-syncAlix ANNERAUD2025-02-282-0/+257
| | | | | | | | | | | | | | Fixes #1394 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/embassy-rs/embassy/issues/1394?shareId=XXXX-XXXX-XXXX-XXXX).
* | docs: fix a typoCyril Marpaud2025-03-311-1/+1
| |
* | Add note about RefCell alternativeAlexander van Saase2025-03-211-2/+5
| |
* | embassy-sync: add lock_mut to blocking_mutex::MutexAlexander van Saase2025-03-191-0/+14
|/
* Merge pull request #3797 from stargazing-dino/add-channel-streamDario Nieuwenhuis2025-02-191-0/+22
|\ | | | | Add stream impl for embassy-sync Channels
| * add stream implRex Magana2025-01-221-0/+22
| |
* | Add must_use to MutexGuardwackazong2025-02-041-0/+1
| |
* | Fix issue #3828lsartory2025-02-011-2/+14
| | | | | | | | | | | | Zero-copy channels could not be used between interrupts and thread-mode tasks because the internal buffer is stored as a raw pointer. A wrapper struct implementing the Sync trait fixes this.
* | embassy-sync: fix clear() to wake sendersibuki20032025-01-264-0/+12
|/
* remove from senderBronson2025-01-201-11/+0
|
* added remove_if to priority channelBronson2025-01-201-0/+42
|
* feat: add dynamic dispatch variants of pipeUlf Lilleengen2025-01-151-0/+273
|
* Desugar some async fnsDániel Buga2024-12-304-20/+20
|
* Generalize AtomicWakerDániel Buga2024-11-221-10/+32
|