Re: Barrier reinit? (prev: Thread starvation with mutex)

Ulrich Drepper <[email protected]> Wed, 11 Feb 2004 10:28:05 -0800
Newsgroups gmane.comp.lib.phil
Organization Red Hat, Inc.
Message-ID <[email protected]>
Sebastien Decugis wrote:
> it does pthread_barrier_destroy and then
> pthread_barrier_init, 

Check the results of each of the function calls.  The
pthread_barrier_destroy call will fail if the barrier is still in use.
Therefore you re-init an active barrier.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖