code: function ReadWriteLock(client, basePath) {
    var readLockDriver = new ReadLockDriver(this);
    var writeLockDriver = new SortingLockDriver();
  
  
    /**
     * Read mutex.
     *
     * @type {Lock}
     */
    this.readMutex = new Lock(client, basePath, READ_LOCK_NAME, readLockDriver);
    this.readMutex.setMaxLeases(Infinity);
  
  
    /**
     * Write mutex.
     *
     * @type {Lock}
     */
    this.writeMutex = new Lock(client, basePath, WRITE_LOCK_NAME,
      writeLockDriver);
  }
docs: Implementation of re-entrant readers-writer mutex.
  
  @constructor
  @param {Rorschach} client Rorschach instance
  @param {String} basePath Base lock path