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-create.c | |
parent | a9d69ae8ab389dc9f47aef519dac4f422b4120ef (diff) | |
parent | 1d49ccdd73c182ad9f280d21d5a5e88bd59db871 (diff) |
Merge branch 'master' into master-glibc-2.23
Diffstat (limited to 'pthread/pt-create.c')
-rw-r--r-- | pthread/pt-create.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c index d88afae..c9e0730 100644 --- a/pthread/pt-create.c +++ b/pthread/pt-create.c @@ -107,7 +107,7 @@ __pthread_create_internal (struct __pthread **thread, if (!stacksize) { struct rlimit rlim; - getrlimit(RLIMIT_STACK, &rlim); + __getrlimit(RLIMIT_STACK, &rlim); if (rlim.rlim_cur != RLIM_INFINITY) stacksize = rlim.rlim_cur; if (!stacksize) @@ -202,9 +202,9 @@ __pthread_create_internal (struct __pthread **thread, could use __thread_setid, however, we only lock for reading as no other thread should be using this entry (we also assume that the store is atomic). */ - pthread_rwlock_rdlock (&__pthread_threads_lock); + __pthread_rwlock_rdlock (&__pthread_threads_lock); __pthread_threads[pthread->thread - 1] = pthread; - pthread_rwlock_unlock (&__pthread_threads_lock); + __pthread_rwlock_unlock (&__pthread_threads_lock); /* At this point it is possible to guess our pthread ID. We have to make sure that all functions taking a pthread_t argument can |