摘要: #include #include #include #include void print(int x) { printf("%d\n", x); } int main() { std::thread t1(print, 1); std::thread t2(print, 2); // 获得线程ID std::thread::id t1_i... 阅读全文
posted @ 2019-01-06 22:48 勿忘初心0924 阅读(133) 评论(0) 推荐(0) 编辑