diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-21 00:05:53 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-21 00:05:53 +0200 |
commit | 1f32bdc2e2f54cf4279b720909ff9c2d64a1c406 (patch) | |
tree | 03761c564ebe347a2924667ac4b4d4fabbb58dfe /pthread/pt-dealloc.c | |
parent | a9d69ae8ab389dc9f47aef519dac4f422b4120ef (diff) | |
parent | 1d49ccdd73c182ad9f280d21d5a5e88bd59db871 (diff) |
Merge branch 'master' into master-glibc-2.23
Diffstat (limited to 'pthread/pt-dealloc.c')
-rw-r--r-- | pthread/pt-dealloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pthread/pt-dealloc.c b/pthread/pt-dealloc.c index e324800..f44aefa 100644 --- a/pthread/pt-dealloc.c +++ b/pthread/pt-dealloc.c @@ -49,14 +49,14 @@ __pthread_dealloc (struct __pthread *pthread) by the standards. */ __pthread_mutex_lock (&pthread->state_lock); if (pthread->state != PTHREAD_EXITED) - pthread_cond_broadcast (&pthread->state_cond); + __pthread_cond_broadcast (&pthread->state_cond); __pthread_mutex_unlock (&pthread->state_lock); /* We do not actually deallocate the thread structure, but add it to a list of re-usable thread structures. */ - pthread_mutex_lock (&__pthread_free_threads_lock); + __pthread_mutex_lock (&__pthread_free_threads_lock); __pthread_enqueue (&__pthread_free_threads, pthread); - pthread_mutex_unlock (&__pthread_free_threads_lock); + __pthread_mutex_unlock (&__pthread_free_threads_lock); /* Setting PTHREAD->STATE to PTHREAD_TERMINATED makes this TCB available for reuse. After that point, we can no longer assume |