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

  • Making http post requests using okhttp
  • getSystemService (Context)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTable (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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