I wanted to create a small threaded test to run it through Clang's thread sanitizer, and it seems to produce a lot of output.
I'm not sure how many are false positives, but I think it would be great if we could fix them somehow, since I hope more ppl will use the thread sanitizer (and other tools) on their projects in the future.
I wanted to create a small threaded test to run it through Clang's thread sanitizer, and it seems to produce a lot of output. I'm not sure how many are false positives, but I think it would be great if we could fix them somehow, since I hope more ppl will use the thread sanitizer (and other tools) on their projects in the future.
I have a branch draft here: https://github.com/Celtoys/Remotery/pull/239
I hope I have setup the test correctly. Currently only tested on macOS, but using pthreads, it should work on linux too.
Compile & run with:
Here's the output for the online readers: