Re: BUG - pthread conditional locks and barriers not reliable

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

 



On Fri, 29 Mar 2013, Jo?l Kr?hemann wrote:

> Hi, finished with euphoria. It's an issue with pthread implementation
> may be you have to extend kernel API to fix this problem. You can't wrap
> pthread_barrier_wait with pthread_mutex_lock and pthread_mutex_unlock
> because it has a race condition what ends probably in a deadlock.
>
are you using a PI mutex ? the POSIX spec actually explicitly states that
barriers are not inversion free so for a non-PI mutex that could cause deadlocks
in combination with mutexes. If you are not using PI could you give it a shot-
if that fixes it ? 

thx!
hofrat
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux