相关疑难解决方法(0)

如何杀死或终止一个提升线程

我想终止或杀死提升线程.代码在这里:

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线程.提前致谢.

c++ qt boost boost-thread visual-studio

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

boost ×1

boost-thread ×1

c++ ×1

qt ×1

visual-studio ×1