1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00
* 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:
Ulrich Drepper
2002-11-27 07:09:18 +00:00
parent 76a50749f7
commit 117c452c98
4 changed files with 43 additions and 28 deletions

View File

@@ -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;