_beginthread不用自己CloseHandle掉线程HANDLE吧?

pass86 2008-07-12 12:49:22
_beginthread不用自己CloseHandle掉线程HANDLE吧?

没有自己CloseHandle后,那个HANDLE是否会变成0呢?
...全文
129 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
pass86 2008-07-12
  • 打赏
  • 举报
回复
OK, THANKS!
an_bachelor 2008-07-12
  • 打赏
  • 举报
回复
不用 msdn:
_endthread automatically closes the thread handle (whereas _endthreadex does not). Therefore, when using _beginthread and _endthread, do not explicitly close the thread handle by calling the Win32CloseHandle API.

15,466

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧