pthread_tpidrun,pidgo;staticvoid*th_run;staticvoid*th_go;定义了两个函数和两个线程的标识。#include"Student.h"#include"cocos2d.h"Student::Student{}Student::~Student{cocos2d::cclog;}Student::Student{this->name=name;this->age=age;this->sex=sex;}在退出菜单的回调函数中启动两个线程:[cpp]viewpla