GlobThread.h
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:0k
源码类别:

游戏

开发平台:

Visual C++

  1. #include <winsock2.h>
  2. #include <process.h>
  3. //将C的运行期函数参数转化为C++的
  4. typedef unsigned (__stdcall *PTHREAD_START)(void *);
  5. #define chBEGINTHREADEX(psa,cbStack,pfnStartAddr,
  6. pvParam,fdwCreate,pdwThreadID)( 
  7. (HANDLE) _beginthreadex( 
  8. (void*)(psa),(unsigned)(cbStack), 
  9. (PTHREAD_START)(pfnStartAddr), 
  10. (void*)(pvParam), 
  11. (unsigned)(fdwCreate), 
  12. (unsigned*)(pdwThreadID) ) )