r/javahelp • u/feralalien • Oct 09 '15
Having trouble using the ReentrantReadWriteLock
I seem to be having trouble getting ReentrantReadWriteLock to work. I have done it as far as I can tell, correctly, but my audit method seems to be happening during the move method resulting in inconsistent values. From my understanding this should not be happening because a read lock should wait until the write lock has released. Any insight would be very appreciated!
5
Upvotes
View all comments
Show parent comment
2
u/feralalien Oct 09 '15
Ooooh! Interesting, I had seen the bit about downgrading but I didn't understand what it was for. Wow, thank you so much.