clq

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年1月5日

摘要: _beginthreadex 一定要自己写 CloseHandle 可以不用 _endthreadex天哪,好久不 写忘记了.一直记得线程的句柄只是 createthread 才需要关闭,可能是我用 AfxBeginThread 太多了.以后直接这样好了 ::CloseHandle((HANDLE)_beginthreadex(NULL, 0,threadRun_client,(void *)tp, 0, &runThreadID ));--------------------------------------------------http://wellwy.blog.51cto. 阅读全文
posted @ 2012-01-05 12:45 clq 阅读(2907) 评论(0) 推荐(0) 编辑