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;  



相关文章:

  • 2021-08-29
  • 2021-11-26
  • 2021-06-26
  • 2022-12-23
  • 2021-12-04
  • 2021-11-23
  • 2021-09-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-10-20
  • 2021-12-14
相关资源
相似解决方案