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