7.4.4
#include
#include
#include
#include
{
char *s=(char*)arg;
printf("clean_fun1:%s/r/n",s);
}
void * func00(void* arg)
{
int p=(int)arg;
printf("clean_fun2:%d/n",p);
}
void *func1(void* arg)
{
int excute=(int)arg;
pthread_cleanup_push(&func0,"clean function1");
printf("clean function1 running/n");
//pthread_exit((void*)0);
pthread_cleanup_pop(excute);
return (void*)0;
7.4.4最先出现在Python成神之路。
共有 0 条评论