Robin Mueller
da392ed942
Update embassy-sync/src/mutex.rs
...
Co-authored-by: James Munns <james@onevariable.com>
2025-07-09 14:26:20 +02:00
Robin Mueller
42c8379c5a
some minor documentation fixes
2025-07-09 14:21:19 +02:00
Dario Nieuwenhuis
72248a601a
Update Rust nightly, stable.
2025-07-04 00:23:22 +02:00
Melvin Wang
e19c3a0204
disable ui tests in miri
2025-06-18 16:20:50 -07:00
Melvin Wang
3a43292097
commit expected errors
2025-06-18 16:16:12 -07:00
Melvin Wang
051c63fea2
fix missing sync bounds
2025-06-18 15:38:57 -07:00
Melvin Wang
905aed45f9
add tests illustrating the problem
2025-06-18 15:37:05 -07:00
Dániel Buga
a0d17ea5ca
Remove futures-util where unnecessary
2025-06-16 13:57:19 +02:00
Corey Schuhen
5730b57094
Rename SendableDynamicReceiver to SendDynamicReceiver
2025-05-29 08:30:21 +10:00
Ulf Lilleengen
dfd2d31819
docs: update changelog for embassy-sync
2025-05-28 13:05:38 +02:00
Ulf Lilleengen
62cf9d592b
Merge pull request #4262 from cschuhen/send_on_dynamic_channel
...
Enable Sync and Send for DynamicSender and DynamicReceiver.
2025-05-28 10:43:33 +00:00
Corey Schuhen
277f6f7331
Make Sync capable versions of DynamicSender and DynamicReceiver.
...
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.
2025-05-28 20:29:08 +10:00
Ulf Lilleengen
042abc805a
feat: add support for channel peek
...
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.
2025-05-28 11:34:57 +02:00
Matt Johnston
5e49985ed6
embassy-sync: bump to 0.7.0
2025-05-22 13:29:55 +08:00
Matt Johnston
2f8a8e817c
embassy-sync: Update changelog
2025-05-22 13:29:55 +08:00
Yuri Astrakhan
ef0f29f0ed
Update defmt dependencies
2025-05-18 20:52:09 +02:00
JuliDi
723ebfcb4f
clarify docs for signal and watch
2025-05-04 16:31:26 +02:00
ckrenslehner
c2173591aa
docs: extend the waker documentation
2025-04-26 20:11:25 +02:00
Dario Nieuwenhuis
e0f85249f9
Merge pull request #3932 from AlixANNERAUD/add-rwlock
...
Add RwLock to embassy-sync
2025-04-14 00:50:49 +02:00
Alix ANNERAUD
181a324b4d
Refactor RwLock implementation by removing unused map methods and cleaning up code for improved readability
2025-04-12 12:26:48 +02:00
Dániel Buga
c04b433991
embassy-sync, executor/wasm: don't select critical-section impl for std
2025-04-06 22:43:32 +02:00
Cyril Marpaud
f396579dff
docs: fix a typo
2025-03-31 13:07:03 +02:00
Alexander van Saase
7a031eed66
Add note about RefCell alternative
2025-03-21 23:22:21 +01:00
Alexander van Saase
f3b9be7bee
embassy-sync: add lock_mut to blocking_mutex::Mutex
2025-03-19 20:24:52 +01:00
Alix ANNERAUD
bce15cc813
Enhance RwLock documentation and add map methods for read and write guards to improve data access flexibility
2025-03-17 20:03:36 +01:00
Alix ANNERAUD
41276de34f
Refactor RwLock implementation to support try_read and try_write methods, enhancing lock acquisition flexibility
2025-03-17 19:56:17 +01:00
Alix ANNERAUD
e557ca9606
Remove blocking read-write lock module and its references and refactor rwlock for a simpler approach
2025-03-16 21:45:25 +01:00
Alix ANNERAUD
82c0ab01f1
Remove unnecessary comment in CriticalSectionRawRwLock implementation
2025-02-28 23:32:58 +01:00
Alix ANNERAUD
10fd6d1321
Refactor imports in raw read-write lock module for clarity
2025-02-28 23:30:01 +01:00
Alix ANNERAUD
f2afcecfa8
Remove obsolete raw_rwlock.rs
file
2025-02-28 23:29:57 +01:00
Alix ANNERAUD
9cbdc9f11d
Implement read-write lock methods in CriticalSectionRawRwLock and update tests
2025-02-28 23:26:59 +01:00
Alix ANNERAUD
5568478225
Fix module references in blocking read-write lock implementation
2025-02-28 16:41:41 +01:00
Alix ANNERAUD
33cf27adf6
Refactor blocking read-write lock module structure and improve assertions in ThreadModeRawRwLock
2025-02-28 16:32:12 +01:00
Alix ANNERAUD
a7ecf14259
Add blocking read-write lock implementation and remove obsolete tests
2025-02-28 16:28:10 +01:00
Alix ANNERAUD
114cfdd86b
Add RawRwLock
trait and RawRwLockImpl
struct implementation
...
* 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
2025-02-28 16:22:16 +01:00
Alix ANNERAUD
6904b0cc64
2025-02-28 16:10:15 +01:00
Alix ANNERAUD
025d9f6e98
Add RwLock to embassy-sync
...
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 ).
2025-02-28 15:52:07 +01:00
Dario Nieuwenhuis
a1e75841f8
Merge pull request #3797 from stargazing-dino/add-channel-stream
...
Add stream impl for embassy-sync Channels
2025-02-19 15:46:45 +01:00
wackazong
0f04878301
Add must_use to MutexGuard
2025-02-04 17:12:26 +01:00
lsartory
7d66f1ca19
Fix issue #3828
...
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.
2025-02-01 16:43:41 +01:00
ibuki2003
e2ddba92f7
embassy-sync: fix clear() to wake senders
2025-01-26 17:23:41 +09:00
Rex Magana
269dec9380
add stream impl
2025-01-22 11:26:08 -07:00
Bronson
c65b6db318
remove from sender
2025-01-20 08:51:59 +01:00
Bronson
9f451c7f41
added remove_if to priority channel
2025-01-20 08:51:59 +01:00
Ulf Lilleengen
ed63f80637
chore: bump embassy-sync version
...
Prepare version 0.6.2 for release
2025-01-15 16:12:36 +01:00
Ulf Lilleengen
c06862eeaf
feat: add dynamic dispatch variants of pipe
2025-01-15 11:39:22 +01:00
Dániel Buga
44217aa092
Desugar some async fns
2024-12-30 12:13:13 +01:00
Dániel Buga
c9abff53d7
Bump sync version ( #3562 )
...
* Bump sync version
* Use old embassy-sync in rp bluetooth example
* Downgrade update to minor
2024-11-22 21:16:11 +01:00
Dániel Buga
e05f6da269
Generalize AtomicWaker
2024-11-22 09:21:44 +01:00
Bronson
730dde9ba9
remove option
2024-11-10 21:09:24 +10:30