LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 830|回复: 0

请教一个pthread_mutex_destroy的问题

[复制链接]
发表于 2010-4-24 11:53:44 | 显示全部楼层 |阅读模式
在APUE上看到说,如果是动态分配的pthread_mutex_t,那么就要在free()之前用pthread_mutex_destroy来销毁,如果是静态的pthread_mutex_t,就没必要这样。哪位大侠解释下为什么是这样?谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表