add gettid function
[musl.git] / src / linux / gettid.c
blob70767137e92fe9a8820aede17af029f13d845a5a
1 #define _GNU_SOURCE
2 #include <unistd.h>
3 #include "pthread_impl.h"
5 pid_t gettid(void)
7 return __pthread_self()->tid;