mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
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.
This commit is contained in:
parent
a70e514b69
commit
ed22820f2f
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2003-02-17 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user