title: How to kill or Terminate a boost Thread
body: <p>I want to terminate or kill boost thread.
  code is here:</p>
  
  <pre><code>DWORD WINAPI  StartFaceDetector(LPVOID temp)
  {   
      int j=0;
      char **argv1;
      QApplication a(j,argv1);//add some thread here  
      gui::VisualControl w;
      t=&amp;w;
      boost::thread u(&amp;faceThread);       
      w.show();
      a.exec();
      // I Want to close u thread here.   
      return 0;   
  }
  </code></pre>
  
  <p>I want to close that boost thread before return of function. 
  Thanks in Advance.</p>