aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/specific.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-20 00:00:32 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-20 00:00:32 +0000
commited22820f2f786c9884bc047bffe58a3a6b4330f1 (patch)
tree957c67323fe37cbb6d1e59bfae6ecb63f159703d /linuxthreads/specific.c
parenta70e514b69ff888191fc6b93c7c1276409345f96 (diff)
downloadglibc-ed22820f2f786c9884bc047bffe58a3a6b4330f1.zip
glibc-ed22820f2f786c9884bc047bffe58a3a6b4330f1.tar.gz
glibc-ed22820f2f786c9884bc047bffe58a3a6b4330f1.tar.bz2
UPdate.
2003-02-19 Ulrich Drepper <drepper@redhat.com> * specific.c (pthread_key_delete_helper): Don't use GETMEM, we need the target thread's lock.
Diffstat (limited to 'linuxthreads/specific.c')
-rw-r--r--linuxthreads/specific.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/specific.c b/linuxthreads/specific.c
index 0956ed1..aa8fcb5 100644
--- a/linuxthreads/specific.c
+++ b/linuxthreads/specific.c
@@ -80,10 +80,10 @@ static void pthread_key_delete_helper(void *arg, pthread_descr th)
if (!th->p_terminated) {
/* pthread_exit() may try to free th->p_specific[idx1st] concurrently. */
- __pthread_lock(THREAD_GETMEM(th, p_lock), self);
+ __pthread_lock(th->p_lock, self);
if (th->p_specific[idx1st] != NULL)
th->p_specific[idx1st][idx2nd] = NULL;
- __pthread_unlock(THREAD_GETMEM(th, p_lock));
+ __pthread_unlock(th->p_lock);
}
}