[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 ❖




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]