mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
* sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now takes the array member name and the index as parameters. (THREAD_SETMEM_NC): Likewise. * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface. * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC interfaces. * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element to decide which code to use. (THREAD_SETMEM_NC): Likewise.
This commit is contained in:
@@ -45,7 +45,7 @@ __pthread_getspecific (key)
|
||||
for this thread since the second level array is not allocated
|
||||
return NULL, too. */
|
||||
struct pthread_key_data *level2 = THREAD_GETMEM_NC (THREAD_SELF,
|
||||
specific[idx1st]);
|
||||
specific, idx1st);
|
||||
if (level2 == NULL)
|
||||
/* Not allocated, therefore no data. */
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user