github.com/afumu/libc@v0.0.6/musl/src/thread/pthread_self.c (about)

     1  #include "pthread_impl.h"
     2  #include <threads.h>
     3  
     4  static pthread_t __pthread_self_internal()
     5  {
     6  	return __pthread_self();
     7  }
     8  
     9  weak_alias(__pthread_self_internal, pthread_self);
    10  weak_alias(__pthread_self_internal, thrd_current);