戳人痛处

导航

2022年8月17日 #

[记]Rust在多线程下修改共享变量的值

摘要: 1. use std::time::Duration; use std::sync::{Arc, Mutex}; use std::thread; fn main() { let okz = "2333".to_string(); let apple = Arc::new(Mutex::new(ok 阅读全文

posted @ 2022-08-17 17:58 戳人痛处 阅读(187) 评论(0) 推荐(0) 编辑