KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel