2 ms·
I'm curious if it can be done in Rust entirely though. Maybe some assembly instructions are required e.g. for trapping or setting memory fences.
by amelius 1y ago
I'm curious if it can be done in Rust entirely though. Maybe some assembly instructions are required e.g. for trapping or setting memory fences.
- nicoburns 1y agoIf it comes to it then Rust has excellent support for inline assembly
- amelius 1y agoBut how well does it play with memory fences?
- steveklabnik 1y agoYou don’t even need inline assembly for those https://doc.rust-lang.org/stable/std/sync/atomic/fn.fence.html https://doc.rust-lang.org/stable/std/sync/atomic/fn.fence.ht...