13 ms·
> Yes, I have seen this phenomenon! I've had this happen to me personally. Looking again and again at the tsan error and the code it pointed to, I was absolute
by perryizgr8 6y ago
> Yes, I have seen this phenomenon!
I've had this happen to me personally. Looking again and again at the tsan error and the code it pointed to, I was absolutely sure it was a false positive. Thankfully I got a friend to look at it and after a good night's sleep he was able to explain to me how exactly the code was wrong.
Tl;dr: It is extremely hard to write correct threaded code in C/C++, and it is quite hard to recognize errors even when they are pointed out to you.