摘要:
Pthread_cleanup用于注册线程清理函数,注册的清理函数将在线程被取消或者主动调用pthread_exit时被调用; 一个简单的示例: #include #include // pthread_cleanup_push and pthread_cleanup_pop should be called in pairs at the same lexical n... 阅读全文
posted @ 2014-09-10 23:11
iCode0410
阅读(227)
评论(0)
推荐(0)