pthread_t結構的定義

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;  



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章