Today, I looked at the comments on an answer to this question. The answer was mentioning a link which could help the OP, The comments on that answer were clear - link-only answers are bad. This should be a comment instead. As I looked at those comments, a horrible realization dawned over me, I had given an almost similar answer to this question. While I did give some details in the answer, I've to confess, I was merely putting what the link already had- Just in my own words. In my defence, I never put links as answers, but in this answer, the link had everything, it would have made little sense to write what a ReadWriteLock did all over again. So, I just pointed out the Class did exactly what the OP wanted.
I am a little confused, whether my answer should have been a comment?.