I made the change to add an example of using the ReadWriteLock
, the library class which was suggested in Dim's answer.
Many answers have code examples in them - it makes them easier to understand, and is more useful than just linking to the library documentation. It is however a significant edit to the content, not a change in presentation or correction of an error, so the rejection makes sense.
I could create a new answer with the given example and mark it as accepted - but that doesn't feel fair as Dim's answer is correct, and I accepted it years ago.
Would unaccepting the current answer and adding a new one with a code example be rude? The code example is too large to put in a comment.