pthread_getspecific.c 163 B

12345678
  1. #include "pthread_impl.h"
  2. void *pthread_getspecific(pthread_key_t k)
  3. {
  4. struct pthread *self = pthread_self();
  5. if (!self->tsd) return 0;
  6. return self->tsd[k];
  7. }