Support architectures without atomics with polyfill#115
Support architectures without atomics with polyfill#115eldruin merged 7 commits intorust-embedded-community:masterfrom
Conversation
eldruin
left a comment
There was a problem hiding this comment.
Thank you!
Could you add some documentation about the need to add a critical-section implementation when using this on the corresponding architectures?
Could you also add an entry about this change to the changelog?
Actually, atomic-polyfill should be replaced with portable-atomic but it is not there yet so I'm fine with going ahead with this merge and replacing it later on.
See rust-embedded/heapless#328 for context.
Oh I wasn't aware of that, good to know. Should I create an issue and/or add a |
|
Yes, please create a follow-up issue. |
I created #118. Should I also add a TODO in the Cargo.toml? Also, I might be misunderstanding something, but it looks like taiki-e/portable-atomic#51 is merged. And I would assume we can already use |
|
I intend to deprecate the Which architecture are you trying to use? Is it (btw The trouble with |
|
FWIW, if the required atomic operations are only load/store, |
|
Thanks for the explanation and pointers! Indeed, I confirm using If this PR looks good, I'll just close #118 as obsolete. |
No description provided.