optimize POSIX TSD for fast pthread_getspecific
This commit is contained in:
parent
a53d2f3425
commit
b480808a6a
4 changed files with 14 additions and 9 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue