Possible Duplicate:
Start thread with member function
I have a small class:
class Test
{
public:
void runMultiThread();
private:
int calculate(int from, int to);
}
How its possible to run method calculate
with two differents set of parametrs(for example calculate(0,10)
, calculate(11,20)
) in two threads from method runMultiThread()
?
PS Thanks I have forgotten that I need pass this
, as parameter.