Sync computers

This commit is contained in:
2026-03-09 20:27:24 +01:00
parent c2e5e2f715
commit 60ddc88b38
4 changed files with 274 additions and 176 deletions

View File

@@ -3,10 +3,10 @@
pub struct Volatile<T>(T);
impl<T> Volatile<T> {
pub unsafe fn read(self: *const Self) -> T {
pub unsafe fn read_volatile(self: *const Self) -> T {
unsafe { core::ptr::read_volatile(self as *const T) }
}
pub unsafe fn write(self: *mut Self, value: T) {
pub unsafe fn write_volatile(self: *mut Self, value: T) {
unsafe { core::ptr::write_volatile(self as *mut T, value) }
}
}