mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 22:22:01 +00:00
optimize POSIX TSD for fast pthread_getspecific
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
void *pthread_getspecific(pthread_key_t k)
|
||||
{
|
||||
struct pthread *self = pthread_self();
|
||||
if (!self->tsd) return 0;
|
||||
struct pthread *self = __pthread_self();
|
||||
return self->tsd[k];
|
||||
}
|
||||
|
Reference in New Issue
Block a user