In C, fields can be defined as volatile whereas for Rust it is the accesses. I'm wondering if we should consider wrapping any volatile members in some UnsafeCell-based wrapper to ensure they aren't read by accident.
Unfortunately this is a bit tricky since we can't allow it to be moved by the compiler.
In C, fields can be defined as volatile whereas for Rust it is the accesses. I'm wondering if we should consider wrapping any volatile members in some
UnsafeCell-based wrapper to ensure they aren't read by accident.Unfortunately this is a bit tricky since we can't allow it to be moved by the compiler.