场景说明
有些系统对于pthread_create中需要指定的线程函数的参数并不执行严格的检查,但是有些会出现编译错误,因此需要进行如下的修改
void *thread1()
if((temp = pthread_create(&thread[0], NULL, thread1, NULL)) != 0)
提示:invalid conversion from 'void* (*)()' to 'void* (*)(void*)'
=============
改成: void *thread1(void *)
http://blog.sina.com.cn/s/blog_698f90230100xxfn.html
http://blog.csdn.net/do2jiang/article/details/5527155
本文转自fengyuzaitu 51CTO博客,原文链接:http://blog.51cto.com/fengyuzaitu/1598935,如需转载请自行联系原作者