为何退出thread或者创建thread失败时,需要调用pthread_attr_destroy?
2011-11-30 15:31
381 查看
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.
相关文章推荐
- 为何退出thread或者创建thread失败时,需要调用pthread_attr_destroy?
- 为何退出thread或者创建thread失败时,需要调用pthread_attr_destroy?
- 调用pthread_mutex_destroy之后是否需要free
- 当system或者批处理或者计划任务需要调用其他exe时失败的解决方法(window和linux)
- pthread线程的终止退出 | 线程的大量创建
- 添加com控件后 或者 active 控件后 创建空文档失败
- Java调用FTP创建文件夹失败
- 创建用于非Visual C++工具的DLL——VB调用C++ DLL为何必须使用def文件
- 调用Adobe的axAcroPDF组件或者Webbrowser显示pdf档退出时发生内存错误
- android.app.Activity阅读摘要,有时候会不会需要保持一些现场数据呢? 想让系统帮你退出到后台或者挂掉前做些前置保持工作吗,重点参考吧:
- 为何C语言(的函数调用)需要堆栈,而汇编语言却不需要堆栈
- 创建一个ws_popup窗口为何失败?
- 为何C语言(的函数调用)需要堆栈,而汇编语言却不需要堆栈
- 为何主程序退出了,创建的多线程还在运行呢?
- 为何wait需要在同步代码块中调用
- 为何汇编里调用C函数需要堆栈,而汇编语言的函数的调用却不需要堆栈
- pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);与pthread_detach(thread_id);
- SQL2008 新建维护计划 调用的目标发生了异常 从 IClassFactory 为 CLSID 为 {....} 的 COM 组件创建实例失败,原因是出现以下错误:c001f011.(Micros
- c#调用子窗体show()方法时引起的创建句柄失败
- .Android用Handle调用线程与用Thread直接创建线程的区别?