类成员函数:
std::thread t_save(&MySys::Save,&sys,result,"saveVideo/");
t_save.detach();
std::thread t_save(&MySys::Save,this,result,"saveVideo/");
t_save.detach();
std::thread t_save(&MySys::Save,this);
t_save.detach();
非类成员函数:参数跟后面就行
std::thread t_save(save, PATH, result.video_ptr.at(0), result.mask_index);
std::thread t_save(save);
要短时间多次调用最好不要用this传参数 项目中出现过这个问题
std::thread ss(&Decoder::SaveCycle, this, s);
ss.detach();
s作为参数把对象传进去