title: std::thread calling method of class
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10673585/start-thread-with-member-function">Start thread with member function</a>  </p>
  </blockquote>
  
  
  
  <p>I have a small class:</p>
  
  <pre><code>class Test
  {
  public:
    void runMultiThread();
  private:
    int calculate(int from, int to);
  }  
  </code></pre>
  
  <p>How its possible to run method <code>calculate</code> with two differents set of parametrs(for example <code>calculate(0,10)</code>, <code>calculate(11,20)</code>) in two threads from method <code>runMultiThread()</code>?</p>
  
  <p>PS Thanks I have forgotten that I need pass <code>this</code>, as parameter.</p>