Re: [cfe-users] Silencing errors in TSAN

2020-02-05 Thread Kyle Edwards via cfe-users
On Wed, 2020-02-05 at 19:30 +0100, JVApen wrote: > Hey Kyle, > > This is a bug in your code, if you have a context switch after the > creation of the thread on an overloaded system, the close of the pipe > can be closed while writing or even before it. > > Timing ain't a good way to synchronize t

Re: [cfe-users] Silencing errors in TSAN

2020-02-05 Thread JVApen via cfe-users
Hey Kyle, This is a bug in your code, if you have a context switch after the creation of the thread on an overloaded system, the close of the pipe can be closed while writing or even before it. Timing ain't a good way to synchronize threads. TSan is correct in flagging this occurrence. On Fri,