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:
@@ -57,7 +57,7 @@ __pthread_setspecific (key, value)
|
||||
idx2nd = key % PTHREAD_KEY_2NDLEVEL_SIZE;
|
||||
|
||||
/* This is the second level array. Allocate it if necessary. */
|
||||
level2 = THREAD_GETMEM_NC (self, specific[idx1st]);
|
||||
level2 = THREAD_GETMEM_NC (self, specific, idx1st);
|
||||
if (level2 == NULL)
|
||||
{
|
||||
if (value == NULL)
|
||||
@@ -71,7 +71,7 @@ __pthread_setspecific (key, value)
|
||||
if (level2 == NULL)
|
||||
return ENOMEM;
|
||||
|
||||
THREAD_SETMEM_NC (self, specific[idx1st], level2);
|
||||
THREAD_SETMEM_NC (self, specific, idx1st, level2);
|
||||
}
|
||||
|
||||
/* Pointer to the right array element. */
|
||||
|
Reference in New Issue
Block a user