大家好,又见面了,我是全栈君
linux下被定义为:
在linux履行pthread_t它被定义为 “unsigned long int”,参考这里
Windows下这样定义:
/*
* Generic handle type - intended to extend uniqueness beyond
* that available with a simple pointer. It should scale for either
* IA-32 or IA-64.
*/
typedef struct {
void * p; /* Pointer to actual object */
unsigned int x; /* Extra information - reuse count etc */
} ptw32_handle_t;
typedef ptw32_handle_t pthread_t;
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/117764.html原文链接:https://javaforall.cn