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-internal.h | |
parent | a9d69ae8ab389dc9f47aef519dac4f422b4120ef (diff) | |
parent | 1d49ccdd73c182ad9f280d21d5a5e88bd59db871 (diff) |
Merge branch 'master' into master-glibc-2.23
Diffstat (limited to 'pthread/pt-internal.h')
-rw-r--r-- | pthread/pt-internal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pthread/pt-internal.h b/pthread/pt-internal.h index 18b5b4c..c1b6c59 100644 --- a/pthread/pt-internal.h +++ b/pthread/pt-internal.h @@ -191,15 +191,15 @@ extern pthread_rwlock_t __pthread_threads_lock; #define __pthread_getid(thread) \ ({ struct __pthread *__t; \ - pthread_rwlock_rdlock (&__pthread_threads_lock); \ + __pthread_rwlock_rdlock (&__pthread_threads_lock); \ __t = __pthread_threads[thread - 1]; \ - pthread_rwlock_unlock (&__pthread_threads_lock); \ + __pthread_rwlock_unlock (&__pthread_threads_lock); \ __t; }) #define __pthread_setid(thread, pthread) \ - pthread_rwlock_wrlock (&__pthread_threads_lock); \ + __pthread_rwlock_wrlock (&__pthread_threads_lock); \ __pthread_threads[thread - 1] = pthread; \ - pthread_rwlock_unlock (&__pthread_threads_lock); + __pthread_rwlock_unlock (&__pthread_threads_lock); /* Similar to pthread_self, but returns the thread descriptor instead of the thread ID. */ |