Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libthr/thread/thr_exit.c
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
#include <sys/signalvar.h> | #include <sys/signalvar.h> | ||||
#include "un-namespace.h" | #include "un-namespace.h" | ||||
#include "libc_private.h" | #include "libc_private.h" | ||||
#include "thr_private.h" | #include "thr_private.h" | ||||
static void exit_thread(void) __dead2; | static void exit_thread(void) __dead2; | ||||
__weak_reference(_pthread_exit, pthread_exit); | __weak_reference(_Tthr_exit, pthread_exit); | ||||
__weak_reference(_Tthr_exit, _pthread_exit); | |||||
#ifdef _PTHREAD_FORCED_UNWIND | #ifdef _PTHREAD_FORCED_UNWIND | ||||
static int message_printed; | static int message_printed; | ||||
static void thread_unwind(void) __dead2; | static void thread_unwind(void) __dead2; | ||||
#ifdef PIC | #ifdef PIC | ||||
static void thread_uw_init(void); | static void thread_uw_init(void); | ||||
static _Unwind_Reason_Code thread_unwind_stop(int version, | static _Unwind_Reason_Code thread_unwind_stop(int version, | ||||
▲ Show 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
_thread_exit(const char *fname, int lineno, const char *msg) | _thread_exit(const char *fname, int lineno, const char *msg) | ||||
{ | { | ||||
_thread_exitf(fname, lineno, "%s", msg); | _thread_exitf(fname, lineno, "%s", msg); | ||||
} | } | ||||
void | void | ||||
_pthread_exit(void *status) | _Tthr_exit(void *status) | ||||
{ | { | ||||
_pthread_exit_mask(status, NULL); | _pthread_exit_mask(status, NULL); | ||||
} | } | ||||
void | void | ||||
_pthread_exit_mask(void *status, sigset_t *mask) | _pthread_exit_mask(void *status, sigset_t *mask) | ||||
{ | { | ||||
struct pthread *curthread = _get_curthread(); | struct pthread *curthread = _get_curthread(); | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |