public boolean isReadLocked(){
  return rwl.getReadLockCount() > 0;
}

public boolean isReadLocked ( ) { return rwl . getReadLockCount ( ) > 0 ; }
queries if one or more write lock is held by any thread .
