pthread_t pthread_self()
得到当前线程的ID。
ID
pthread_t的定义如下:
pthread_t
typedef unsigned long int pthread_t;