7.4.5
#include
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);
7.4.5最先出现在Python成神之路。
共有 0 条评论