From b87925b8c0489002e890fa97e69e55cb8be24523 Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 1 Apr 2006 03:34:38 +0000 Subject: '' --- BUGS | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'BUGS') 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. -- cgit v1.2.3