Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
seoaeu
3y ago
0 comments
Save
Share
You totally can in safe rust:
https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.h...
0 comments
1 comments · 1 top-level
top
newest
oldest
njs12345
3y ago
The atomics themselves sure, but I guess often they'll be used as a barrier to protect an UnsafeCell or something, like in the implementation of Lazy<T>:
https://docs.rs/lazy-init/0.5.0/src/lazy_init/lib.rs.html#85
j
/
k
navigate · click thread line to collapse