Why there is no way to check if current thread holds the read lock of ReentrantReadWriteLock?
Asked 2012-12-18T17:20:19.607
9
I found that the write lock of the ReentrantReadWriteLock provides an isHeldByCurrentThread() method to check whether the invoking thread holds that lock.
But there is no corresponding isHeldByCurrentThread() method for the read lock. Why not?