Files
musl/src/thread/pthread_getspecific.c

12 lines
269 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include "pthread_impl.h"
#include <threads.h>
2011-02-12 00:22:29 -05:00
static void *__pthread_getspecific(pthread_key_t k)
2011-02-12 00:22:29 -05:00
{
struct pthread *self = __pthread_self();
2011-02-12 00:22:29 -05:00
return self->tsd[k];
}
weak_alias(__pthread_getspecific, pthread_getspecific);
weak_alias(__pthread_getspecific, tss_get);