Tabnine Logo
Os.msync
Code IndexAdd Tabnine to your IDE (free)

How to use
msync
method
in
libcore.io.Os

Best Java code snippets using libcore.io.Os.msync (Showing top 14 results out of 315)

origin: robovm/robovm

public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
origin: robovm/robovm

/**
 * Flushes changes made to the in-memory buffer back to the mapped file.
 * Unless you call this, changes may not be written back until the finalizer
 * runs. This method waits for the write to complete before returning.
 *
 * @return this buffer.
 */
public final MappedByteBuffer force() {
 checkIsMapped();
 if (mapMode == MapMode.READ_WRITE) {
  try {
   Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC);
  } catch (ErrnoException errnoException) {
   // The RI doesn't throw, presumably on the assumption that you can't get into
   // a state where msync(2) could return an error.
   throw new AssertionError(errnoException);
  }
 }
 return this;
}
origin: ibinti/bugvm

public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
origin: MobiVM/robovm

public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
origin: com.mobidevelop.robovm/robovm-rt

public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
origin: com.bugvm/bugvm-rt

public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
origin: com.gluonhq/robovm-rt

public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
origin: FlexoVM/flexovm

public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
origin: com.gluonhq/robovm-rt

/**
 * Flushes changes made to the in-memory buffer back to the mapped file.
 * Unless you call this, changes may not be written back until the finalizer
 * runs. This method waits for the write to complete before returning.
 *
 * @return this buffer.
 */
public final MappedByteBuffer force() {
 checkIsMapped();
 if (mapMode == MapMode.READ_WRITE) {
  try {
   Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC);
  } catch (ErrnoException errnoException) {
   // The RI doesn't throw, presumably on the assumption that you can't get into
   // a state where msync(2) could return an error.
   throw new AssertionError(errnoException);
  }
 }
 return this;
}
origin: ibinti/bugvm

/**
 * Flushes changes made to the in-memory buffer back to the mapped file.
 * Unless you call this, changes may not be written back until the finalizer
 * runs. This method waits for the write to complete before returning.
 *
 * @return this buffer.
 */
public final MappedByteBuffer force() {
 checkIsMapped();
 if (mapMode == MapMode.READ_WRITE) {
  try {
   Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC);
  } catch (ErrnoException errnoException) {
   // The RI doesn't throw, presumably on the assumption that you can't get into
   // a state where msync(2) could return an error.
   throw new AssertionError(errnoException);
  }
 }
 return this;
}
origin: FlexoVM/flexovm

/**
 * Flushes changes made to the in-memory buffer back to the mapped file.
 * Unless you call this, changes may not be written back until the finalizer
 * runs. This method waits for the write to complete before returning.
 *
 * @return this buffer.
 */
public final MappedByteBuffer force() {
 checkIsMapped();
 if (mapMode == MapMode.READ_WRITE) {
  try {
   Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC);
  } catch (ErrnoException errnoException) {
   // The RI doesn't throw, presumably on the assumption that you can't get into
   // a state where msync(2) could return an error.
   throw new AssertionError(errnoException);
  }
 }
 return this;
}
origin: MobiVM/robovm

/**
 * Flushes changes made to the in-memory buffer back to the mapped file.
 * Unless you call this, changes may not be written back until the finalizer
 * runs. This method waits for the write to complete before returning.
 *
 * @return this buffer.
 */
public final MappedByteBuffer force() {
 checkIsMapped();
 if (mapMode == MapMode.READ_WRITE) {
  try {
   Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC);
  } catch (ErrnoException errnoException) {
   // The RI doesn't throw, presumably on the assumption that you can't get into
   // a state where msync(2) could return an error.
   throw new AssertionError(errnoException);
  }
 }
 return this;
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Flushes changes made to the in-memory buffer back to the mapped file.
 * Unless you call this, changes may not be written back until the finalizer
 * runs. This method waits for the write to complete before returning.
 *
 * @return this buffer.
 */
public final MappedByteBuffer force() {
 checkIsMapped();
 if (mapMode == MapMode.READ_WRITE) {
  try {
   Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC);
  } catch (ErrnoException errnoException) {
   // The RI doesn't throw, presumably on the assumption that you can't get into
   // a state where msync(2) could return an error.
   throw new AssertionError(errnoException);
  }
 }
 return this;
}
origin: com.bugvm/bugvm-rt

/**
 * Flushes changes made to the in-memory buffer back to the mapped file.
 * Unless you call this, changes may not be written back until the finalizer
 * runs. This method waits for the write to complete before returning.
 *
 * @return this buffer.
 */
public final MappedByteBuffer force() {
 checkIsMapped();
 if (mapMode == MapMode.READ_WRITE) {
  try {
   Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC);
  } catch (ErrnoException errnoException) {
   // The RI doesn't throw, presumably on the assumption that you can't get into
   // a state where msync(2) could return an error.
   throw new AssertionError(errnoException);
  }
 }
 return this;
}
libcore.ioOsmsync

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • getContentResolver (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • JPanel (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now