当前位置: 技术问答>linux和unix
谁帮我看一下这函数有没有语法错误
来源: 互联网 发布时间:2016-04-29
本文导语: void * thr_fn1(void *arg) { printf("thread1 1 startn"); pthread_cleanup_push(cleanup,"thread first handler"); pthread_cleanup_push(cleanup,"thead second handler"); printf("thread 1 push completen"); if(arg) return ((void *)1); pthread_cleanup_pop(0); pthread_cleannp_pop(0); ...
void * thr_fn1(void *arg)
{
printf("thread1 1 startn");
pthread_cleanup_push(cleanup,"thread first handler");
pthread_cleanup_push(cleanup,"thead second handler");
printf("thread 1 push completen");
if(arg)
return ((void *)1);
pthread_cleanup_pop(0);
pthread_cleannp_pop(0);
return ((void *)1);
}
老是报语法错误
|
if(arg)
return ((void *)1);
pthread_cleanup_pop(0);
pthread_cleannp_pop(0); //这有一个拼写错误 cleannp cleanup 看着都差不多 :)
return ((void *)1);
}