pthread_create

1.

 char *message = new char[macstr.size() + 1];
            strcpy(message,macstr.c_str());

            std::cout<<macstr<<std::endl;
            pthread_create(&tid1,NULL,runner,message);

2.    char* pmac = (char*)param;
   std::cout<<"pm"<<pmac<<std::endl;

posted on 2018-01-09 14:37  lydstory  阅读(106)  评论(0编辑  收藏  举报

导航