linux下是这样定义的:

在linux的实现中pthread_t被定义为 "unsigned long int",参考http://condor.depaul.edu/glancast/443class/docs/pthreads.html


Windows下这样定义:

 1 /*  
 2  * Generic handle type - intended to extend uniqueness beyond  
 3  * that available with a simple pointer. It should scale for either  
 4  * IA-32 or IA-64.  
 5  */    
 6 typedef struct {    
 7     void * p;                   /* Pointer to actual object */    
 8     unsigned int x;             /* Extra information - reuse count etc */    
 9 } ptw32_handle_t;    
10 typedef ptw32_handle_t pthread_t;   

转载于:https://www.cnblogs.com/sky-of-chuanqingchen/p/4123413.html

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:23 天前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐