1. 程式人生 > >對linux下程式設計中用到的標頭檔案頭的一些定義及函式進行解譯(本人使用過程中用到過的不明白的定義及函式)

對linux下程式設計中用到的標頭檔案頭的一些定義及函式進行解譯(本人使用過程中用到過的不明白的定義及函式)

1、typedef unsigned long int pthread_t;

型別定義:

typedef unsigned long int pthread_t;

//come from /usr/include/bits/pthreadtypes.h

用途:pthread_t用於宣告執行緒ID。

sizeof(pthread_t) =8

pthread_t,在使用printf列印時,應轉換為u型別。

2、