summaryrefslogtreecommitdiff
path: root/pthread/pt-exit.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-21 00:05:53 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-21 00:05:53 +0200
commit1f32bdc2e2f54cf4279b720909ff9c2d64a1c406 (patch)
tree03761c564ebe347a2924667ac4b4d4fabbb58dfe /pthread/pt-exit.c
parenta9d69ae8ab389dc9f47aef519dac4f422b4120ef (diff)
parent1d49ccdd73c182ad9f280d21d5a5e88bd59db871 (diff)
Merge branch 'master' into master-glibc-2.23
Diffstat (limited to 'pthread/pt-exit.c')
-rw-r--r--pthread/pt-exit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pthread/pt-exit.c b/pthread/pt-exit.c
index 3427de5..b078db2 100644
--- a/pthread/pt-exit.c
+++ b/pthread/pt-exit.c
@@ -39,14 +39,14 @@ __pthread_exit (void *status)
/* Run any cancelation handlers. According to POSIX, the
cancellation cleanup handlers should be called with cancellation
disabled. */
- pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
+ __pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
for (handlers = __pthread_get_cleanup_stack ();
*handlers;
*handlers = (*handlers)->__next)
(*handlers)->__handler ((*handlers)->__arg);
- pthread_setcancelstate (oldstate, &oldstate);
+ __pthread_setcancelstate (oldstate, &oldstate);
/* Decrease the number of threads. We use an atomic operation to
make sure that only the last thread calls `exit'. */
@@ -86,7 +86,7 @@ __pthread_exit (void *status)
/* Broadcast the condition. This will wake up threads that are
waiting to join us. */
- pthread_cond_broadcast (&self->state_cond);
+ __pthread_cond_broadcast (&self->state_cond);
__pthread_mutex_unlock (&self->state_lock);
break;