现在的位置: 首页 > 综合 > 正文

为何退出thread或者创建thread失败时,需要调用pthread_attr_destroy?

2013年06月30日 ⁄ 综合 ⁄ 共 198字 ⁄ 字号 评论关闭
POSIX 标准要求:
   When a thread attributes object is no longer required, it should be destroyed using the pthread_attr_destroy() function.  Destroying a thread attributes object has no effect on threads that were created using that object.

【上篇】
【下篇】

抱歉!评论已关闭.