pthread_exit(3) Library Functions Manual pthread_exit(3) pthread_exit - POSIX threads library (libpthread, -lpthread) #include [[noreturn]] void pthread_exit(void *retval); pthread_exit() retval, ( ) , pthread_join(3). - , pthread_cleanup_push(3), ( ). - , , . (, , , ) , atexit(3), . , exit(3) ; , atexit(3). . . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |pthread_exit() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. pthread_exit(), . , pthread_exit(), exit(3). , retval, , . wait(2) . - , , pthread_exit(). pthread_create(3), pthread_join(3), pthreads(7) () Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . pthread_exit(3)