title: Usage threads in google tests
body: <p>I want to create some tests to check multi-threading in my application. I use google test framework. My following code is not compiled with error message <code>error: invalid use of non-static member function</code></p>
  
  <pre><code>TEST_F( tc, t ) {
    std::thread thread1 ( f1, p1 );
    std::thread thread2 ( f2, p2 );
    thread1.join();
    thread2.join();    
  }
  </code></pre>
  
  <p>I use GCC 5.2.1 for compiling.</p>
  
  <p>Could you please point me out hot to fix it?</p>