[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd,commited 09/10] htl: Fix barrier_wait with one thread
From: |
Samuel Thibault |
Subject: |
[hurd,commited 09/10] htl: Fix barrier_wait with one thread |
Date: |
Mon, 10 Feb 2020 02:05:07 +0100 |
---
sysdeps/htl/pt-barrier-wait.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sysdeps/htl/pt-barrier-wait.c b/sysdeps/htl/pt-barrier-wait.c
index 47ec440b26..146605abd8 100644
--- 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;
--
2.24.1
- [hurd, commited 01/10] htl: clean __pthread_get_cleanup_stack hidden proto, Samuel Thibault, 2020/02/09
- [hurd,commited 06/10] htl: Make sem_open return ENOSYS, Samuel Thibault, 2020/02/09
- [hurd, commited 04/10] pthread: Move key tests from nptl to sysdeps/pthread, Samuel Thibault, 2020/02/09
- [hurd,commited 05/10] htl: Add support for semaphore maximum value, Samuel Thibault, 2020/02/09
- [hurd,commited 03/10] hurd: Make nanosleep a cancellation point, Samuel Thibault, 2020/02/09
- [hurd, commited 08/10] pthread: Move most sem tests from nptl to sysdeps/pthread, Samuel Thibault, 2020/02/09
- [hurd,commited 02/10] htl: Add support for libc cancellation points, Samuel Thibault, 2020/02/09
- [hurd,commited 09/10] htl: Fix barrier_wait with one thread,
Samuel Thibault <=
- [hurd, commited 10/10] pthread: Move most barrier tests from nptl to sysdeps/pthread, Samuel Thibault, 2020/02/09
- [hurd,commited 07/10] htl: Make sem_wait/sem_timedwait interruptible, Samuel Thibault, 2020/02/09