菜鸟笔记
提升您的技术认知

boost thread 参数传递-ag真人官方网

boost thread 参数传递

#include 
#include 
using namespace std;
void func1(const int &id)
{
    cout<<"func1 id : "<线程的参数传递
int main()
{
    boost::thread t1(func1, 11);
    boost::thread t2(func2, 22);
    boost::thread t3(func3, 33);
    t1.join();
    t2.join();
    t3.join();
    system("pause");
    return 0;
}
#include 
#include 
using namespace std;
void func1(const int &id)
{
    cout<<"func1 id : "<
网站地图