pthread_t结构的定义

时间:2015-01-01 15:59:03   收藏:0   阅读:324

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;  



原文:http://www.cnblogs.com/bhlsheji/p/4197228.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!