thrd_exit(3)		   Library Functions Manual		  thrd_exit(3)

NAME
     thrd_exit – terminate a thread

SYNOPSIS
     library “threads”
     #include <threads.h>

     void
     thrd_exit(int code);

DESCRIPTION
     The function thrd_exit() will terminate the current thread with an
     arbitrary exit code code that any waiting threads can retrieve using
     thrd_join(3).

     The thread will call any destructors for thread-local storage that have
     been set using tss_create(3) whilst blocking signals.

     If the subroutine of a thread returns thrd_exit() will be implicitly
     called and the status code will be set to the return value of the thread
     function.

RETURN VALUES
     The function thrd_exit() does not return.

SEE ALSO
     thrd_create(3) thrd_sleep(3) thrd_yield(3) thrd_equal(3) thrd_detach(3)
     thrd_current(3) thrd_join(3)

HISTORY
     The thrd_exit() function first appeared in the C11 standard ISO/IEC
     9899:2011.

AUTHORS
     Jan Adelsbach <jan@jadelsbach.de>

Linux 6.13.6-1-default		  May 9, 2020		Linux 6.13.6-1-default