|
From: Julian S. <js...@ac...> - 2009-02-05 15:34:03
|
On Thursday 05 February 2009, Christoph Bartoschek wrote: > Hi, > > today I had to learn that the attached program is incorrect. It is not > allowed to destroy the barrier while not all threads have left the > pthread_barrier_wait() call. > > Unfortunately neither DRD nor Helgrind warn about this error. Could you > please improve the tools to detect such errors? Um, where is the bug in this program? To me it looks OK: the barrier is not destroyed until after both parent and child have passed it. J |