projects
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e8daea
)
git-barrier-1
author
GNU Libc Maintainers
<debian-glibc@lists.debian.org>
Tue, 5 May 2020 18:12:38 +0000
(19:12 +0100)
committer
Aurelien Jarno
<aurel32@debian.org>
Tue, 5 May 2020 18:12:38 +0000
(19:12 +0100)
commit
29bc8736d1fdb80d2416b3920080dad58b32bf44
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Feb 9 23:02:13 2020 +0000
htl: Fix barrier_wait with one thread
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-barrier-1.diff
sysdeps/htl/pt-barrier-wait.c
patch
|
blob
|
history
diff --git
a/sysdeps/htl/pt-barrier-wait.c
b/sysdeps/htl/pt-barrier-wait.c
index 8171c7ebd39f47b910496231281a085111548b7f..d18f76d50969ae04994a745f3a8fe8584922ad1f 100644
(file)
--- a/
sysdeps/htl/pt-barrier-wait.c
+++ b/
sysdeps/htl/pt-barrier-wait.c
@@
-29,7
+29,9
@@
pthread_barrier_wait (pthread_barrier_t *barrier)
{
barrier->__pending = barrier->__count;
- if (barrier->__count > 1)
+ if (barrier->__count == 1)
+ __pthread_spin_unlock (&barrier->__lock);
+ else
{
struct __pthread *wakeup;
unsigned n = 0;