摘要:
1 //这里使用c++的thread创建了5个线程,并支持传递多个参数 2 void thread1(int aa,int bb) 3 { 4 cout << aa << bb << endl; 5 } 6 7 void testthread() 8 { 9 int ithreads[] = {1,2,3,4,5}; 10 for(auto i: it... 阅读全文
posted @ 2016-06-21 00:38 codetask 阅读(129) 评论(0) 推荐(0)
浙公网安备 33010602011771号