aboutsummaryrefslogtreecommitdiff
path: root/src/thread/thrd_exit.c
blob: c532f1a801f4755846e78778d1f1e5bb145127c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <threads.h>
#include <pthread.h>
#include <stdint.h>

_Noreturn void thrd_exit(int result)
{
	__pthread_exit((void*)(intptr_t)result);
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif