if (currentWriter != null && currentWriter.equals(Thread.currentThread())) return; synchronized (documentCV) { while (currentWriter != null || numWritersWaiting > 0) { try { documentCV.wait(); } catch (InterruptedException ie) { throw new Error("interrupted trying to get a readLock"); } } numReaders++; }
  public void readLock()  {  }