rust: Typical multi thread patterns
摘要:
```rustuse std::sync::Mutex;use std::sync::Arc;use std::{thread};fn main() { // Typical multi thread patterns let data = Arc::new(Mutex::new(vec![1u32, 2, 3])); let mut handles = vec![]; f... 阅读全文
posted @ 2020-03-08 11:17 cutepig 阅读(157) 评论(0) 推荐(0) 编辑