summaryrefslogtreecommitdiff
path: root/BUGS
diff options
context:
space:
mode:
Diffstat (limited to 'BUGS')
-rw-r--r--BUGS12
1 files changed, 12 insertions, 0 deletions
diff --git a/BUGS b/BUGS
index a3fb2a3..bed6faf 100644
--- a/BUGS
+++ b/BUGS
@@ -114,3 +114,15 @@ Known bugs
3. The Borland Builder 5.5 version of the library produces memory read exceptions
in some tests.
+
+4. pthread_barrier_wait() can deadlock if the number of potential calling
+threads for a particular barrier is greater than the barrier count parameter
+given to pthread_barrier_init() for that barrier.
+
+This is due to the very lightweight implementation of pthread-win32 barriers.
+To cope with more than "count" possible waiters, barriers must effectively
+implement all the same safeguards as condition variables, making them much
+"heavier" than at present.
+
+The workaround is to ensure that no more than "count" threads attempt to wait
+at the barrier.