【发布时间】:2012-06-15 11:03:06
【问题描述】:
我有一个小班:
class Test
{
public:
void runMultiThread();
private:
int calculate(int from, int to);
}
如何在方法runMultiThread() 的两个线程中使用两组不同的参数(例如calculate(0,10)、calculate(11,20))运行方法calculate?
PS 谢谢我忘了我需要传递this 作为参数。
【问题讨论】:
标签: c++ multithreading c++11