pthread_getspecific.c 269 B

1234567891011
  1. #include "pthread_impl.h"
  2. #include <threads.h>
  3. static void *__pthread_getspecific(pthread_key_t k)
  4. {
  5. struct pthread *self = __pthread_self();
  6. return self->tsd[k];
  7. }
  8. weak_alias(__pthread_getspecific, pthread_getspecific);
  9. weak_alias(__pthread_getspecific, tss_get);