3 ms·
You seem to have missed the part where an actual MS employee confirmed it was a bug in their API.
by userbinator 3y ago
You seem to have missed the part where an actual MS employee confirmed it was a bug in their API.
- ww520 3y agoHe just read OP's code, the C++/STL Standard, and the Microsoft Learn document and made that conclusion. That's a rather haste determination. Unless he read the actual Windows lock implementation and found a bug there, I don't think his conclusion is correct.
- forrestthewoods 3y ago> That's a rather haste determination. I hope you realize how deeply ironic this statement is. If you read the comments you'll find he even produced a slightly reduced repro. And in other comments he tried minor tweaks like the one you suggested. You have a thesis that the program has a bug. (It doesn't.) Go ahead and test your thesis and report back.