code: public void flushFile(final OFileMMap iFile) {
      lockManager.acquireLock(Thread.currentThread(), iFile, OLockManager.LOCK.SHARED);
      try {
        final OMMapBufferEntry[] fileEntries = bufferPoolPerFile.get(iFile);
        if (fileEntries != null) {
          for (OMMapBufferEntry entry : fileEntries) {
            entry.flush();
          }
        }
      } finally {
        lockManager.releaseLock(Thread.currentThread(), iFile, OLockManager.LOCK.SHARED);
      }
    }
docs: {@inheritDoc}