코딩Coding/★Rust★기초★Syntax
What's the difference between Arc<Mutex<_>> and std::sync::atomic::Atomic_?
내인생PLUS
2023. 9. 10. 14:22
728x90
What's the difference between Arc<Mutex<_>> and std::sync::atomic::Atomic_?
https://stackoverflow.com/questions/75456126/whats-the-difference-between-arcmutex-and-stdsyncatomicatomic
What's the difference between Arc<Mutex<_>> and std::sync::atomic::Atomic_?
I have no experience using Atomic_, below is how I used to share states. use std::sync::{Arc, Mutex}; #[tokio::main] async fn main() { let shared_value = Arc::new(Mutex::new(0)); let mut h...
stackoverflow.com
반응형