pthread_self(3) Library Functions Manual pthread_self(3) pthread_self - ID POSIX (libpthread, -lpthread) #include pthread_t pthread_self(void); pthread_self() . *thread pthread_create(3) . , . . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |pthread_self() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. POSIX.1 , ; , . pthread_t C (==); pthread_equal(3). << >>: ID pthreads . . . , pthread_self() gettid(2). pthread_create(3), pthread_equal(3), pthreads(7) () Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . pthread_self(3)