From b02840bacdefde318d2ad2f920e50785b9b25d69 Mon Sep 17 00:00:00 2001 From: Torvald Riegel Date: Wed, 24 Jun 2015 14:37:32 +0200 Subject: New pthread_barrier algorithm to fulfill barrier destruction requirements. The previous barrier implementation did not fulfill the POSIX requirements for when a barrier can be destroyed. Specifically, it was possible that threads that haven't noticed yet that their round is complete still access the barrier's memory, and that those accesses can happen after the barrier has been legally destroyed. The new algorithm does not have this issue, and it avoids using a lock internally. --- sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c') diff --git a/sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c b/sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c index 8336f5e00c..246c8d49de 100644 --- a/sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c +++ b/sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c @@ -1 +1 @@ -#include +#include -- cgit v1.2.3