summaryrefslogtreecommitdiff
path: root/src/thread/pthread_getspecific.c
blob: a6ca27d0d50169c3c905adab5dad08f285804662 (plain)
1
2
3
4
5
6
7
8
#include "pthread_impl.h"

void *pthread_getspecific(pthread_key_t k)
{
	struct pthread *self = pthread_self();
	if (!self->tsd) return 0;
	return self->tsd[k];
}