摘要: 在C++的类中,普通成员函数不能作为pthread_create的线程函数,如果要作为pthread_create中的线程函数,必须是static ! 在C语言中,我们使用pthread_create创建线程,线程函数是一个全局函数,所以在C++中,创建线程时,也应该使用一个全局函数。static定 阅读全文
posted @ 2020-03-10 10:56 夜行过客 阅读(3382) 评论(0) 推荐(0) 编辑