【发布时间】:2014-06-26 20:31:10
【问题描述】:
我想终止或终止 boost 线程。 代码在这里:
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;
}
我想在函数返回之前关闭那个 boost 线程。 提前致谢。
【问题讨论】:
-
你为什么不用QThread?
标签: c++ visual-studio qt boost boost-thread