Use pthread_self(3THR) to get the thread identifier of the calling thread. Prototype: pthread_t pthread_self(void); #include <pthread.h> pthread_t tid ; tid = ...
確定! 回上一頁