【发布时间】:2010-03-23 06:50:07
【问题描述】:
有人可以告诉我们如何正确打印 windows 中的处理线程吗?实际上我尝试了几种方法,但它没有像 Unix-variant 那样返回正确的数字,例如:
cout << " with thread " << pthread_self << endl;
cout << " with thread " << pthread_self().p << endl;
感谢您的回复:
【问题讨论】:
标签: c++ c multithreading pthreads