h2/src/main/org/h2/mvstore/MVMap.java
/**
     * If there is a concurrent update to the given version, wait until it is
     * finished.
     *
     * @param version the read version
     */
If there is a concurrent update to the given version, wait until it is
finished.

@param version the read version
If there is a concurrent update to the given version wait until it is finished . @param version the read version
protected void waitUntilWritten(long version) {
        if (readOnly) {
            throw DataUtils.newIllegalStateException(
                    DataUtils.ERROR_INTERNAL, "Waiting for writes to a read-only map");
        }
        while (currentWriteVersion == version) {
            Thread.yield();
        }
    }
protected void waitUntilWritten ( long version ) { if ( readOnly ) { throw DataUtils . newIllegalStateException ( DataUtils . ERROR_INTERNAL , "Waiting for writes to a read-only map" ) ; } while ( currentWriteVersion == version ) { Thread . yield ( ) ; } }
If there is a concurrent update to the given version, wait until it is
 finished.
If there is a concurrent update to the given version wait until it is finished .