我想终止或杀死提升线程.代码在这里:
DWORD WINAPI StartFaceDetector(LPVOID temp)
{
int j=0;
char **argv1;
QApplication a(j,argv1);//add some thread here
gui::VisualControl w;
t=&w;
boost::thread u(&faceThread);
w.show();
a.exec();
// I Want to close u thread here.
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我想在返回函数之前关闭该boost线程.提前致谢.