Thanks Lukasz ... we will try this tomorrow then. Where do we insert the barrier, before a) the if in https://github.com/xrootd/xrootd/blob/master/src/XrdSys/XrdSysPthread.hh#L341 or really before b) https://github.com/xrootd/xrootd/blob/master/src/XrdCl/XrdClMessageUtils.hh#L66 ? In case b) it will also be there for the libc semaphores that seem to be ok now. With glibc-2.22 things work ok, the helgrind reports about SyncHandler are gone. A question: why are semaphores better than condition variables in this case? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/xrootd/xrootd/issues/404#issuecomment-240942773 ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the XROOTD-DEV list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1