摘要: 问题 #include<iostream> #include<thread> int main() { int sum = 0; auto f = [&sum]() { for (int i = 0; i < 10000; i++) sum += 1; }; std::thread t1(f); s 阅读全文
posted @ 2024-03-31 14:00 robot2017 阅读(94) 评论(0) 推荐(0) 编辑