在c++类中使用多线程的方法
定义一个thread变量,然后在构造函数中进行启动
in *.h: std::thread threadShowKeyFms; in *.cpp: this->threadShowKeyFms = std::thread(&RosVisualizer::ShowKeyframes, this);
博客介绍了在C++类中使用多线程的方法,即定义一个thread变量,并在构造函数中启动该线程。
在c++类中使用多线程的方法
定义一个thread变量,然后在构造函数中进行启动
in *.h: std::thread threadShowKeyFms; in *.cpp: this->threadShowKeyFms = std::thread(&RosVisualizer::ShowKeyframes, this);

被折叠的 条评论
为什么被折叠?