2013年10月10日
摘要: 1 #include 2 #include 3 4 void cleanup(void *arg) { 5 6 printf("cleanup: %s\n", (char*)arg); 7 } 8 9 void* thr_fn1(void *arg) {10 11 printf("thread1 start\n");12 pthread_cleanup_push(cleanup, (void*)"thread 1 first handler");13 pthread_cleanup_push(cleanup, (void*)" 阅读全文
posted @ 2013-10-10 14:16 笔记吧... 可能只有自己看得懂 阅读(197) 评论(0) 推荐(0) 编辑