#include "pthread_impl.h" #include /* Not all arch have __pthread_self as a symbol. On some this results in some magic. So this "call" to __pthread_self is not necessary a tail call. In particular, other than the appearance, thrd_current can not be implemented as a weak symbol. */ thrd_t thrd_current() { return __pthread_self(); }