Debian Codegraph @

libc-top-half/musl/src/thread/pthread_self.c

raw
1 #include "pthread_impl.h"
2 #include <threads.h>
3
4 #if !defined(__wasilibc_unmodified_upstream) && defined(__wasm__)
5 _Thread_local struct pthread __wasilibc_pthread_self;
6 #endif
7
8 static pthread_t __pthread_self_internal()
9 {
10 return __pthread_self();
11 }
12
13 weak_alias(__pthread_self_internal, pthread_self);
14 weak_alias(__pthread_self_internal, thrd_current);