|
|
Log in / Subscribe / Register

read/write volatile

read/write volatile

Posted Jan 9, 2026 19:54 UTC (Fri) by mb (subscriber, #50428)
In reply to: read/write volatile by josh
Parent article: READ_ONCE(), WRITE_ONCE(), but not for Rust

Yes. Should not.
As I said, it's an LLVM problem on AVR. Which is not a stable tier.
Atomic always use heavy syncing on AVR in the current compiler.

But that was not my point.

My point was that I think volatile accesses are not sound in Rust for inter thread communication.


to post comments

read/write volatile

Posted Jan 9, 2026 22:10 UTC (Fri) by josh (subscriber, #17465) [Link]

> As I said, it's an LLVM problem on AVR. Which is not a stable tier.
> Atomic always use heavy syncing on AVR in the current compiler.

Ah, got it, thank you. Hopefully that can be fixed.

> My point was that I think volatile accesses are not sound in Rust for inter thread communication.

Right, I believe that's correct.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds