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

How to use
poll
method
in
libcore.io.Os

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

origin: robovm/robovm

public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); }
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
origin: robovm/robovm

@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException {
  // Greater than 0 is a timeout in milliseconds and -1 means "block forever",
  // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard.
  if (timeoutMs != 0) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.poll(fds, timeoutMs);
}
origin: robovm/robovm

pollFds[0].fd = fd;
pollFds[0].events = (short) POLLOUT;
int rc = Libcore.os.poll(pollFds, remainingTimeoutMs);
if (rc == 0) {
  return false; // Timeout.
origin: robovm/robovm

while (true) {
  try {
    if (timeout <= 0 || Libcore.os.poll(pfds, timeout) == 0) {
      throw new SocketTimeoutException("accept() timed out");
origin: robovm/robovm

  rc = Libcore.os.poll(pollFds.array(), (int) timeout);
} catch (ErrnoException errnoException) {
  if (errnoException.errno != EINTR) {
origin: MobiVM/robovm

public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); }
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
origin: com.gluonhq/robovm-rt

public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); }
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
origin: ibinti/bugvm

public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); }
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
origin: com.bugvm/bugvm-rt

public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); }
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
origin: FlexoVM/flexovm

public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); }
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
origin: com.mobidevelop.robovm/robovm-rt

public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); }
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
origin: MobiVM/robovm

@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException {
  // Greater than 0 is a timeout in milliseconds and -1 means "block forever",
  // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard.
  if (timeoutMs != 0) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.poll(fds, timeoutMs);
}
origin: ibinti/bugvm

@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException {
  // Greater than 0 is a timeout in milliseconds and -1 means "block forever",
  // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard.
  if (timeoutMs != 0) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.poll(fds, timeoutMs);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException {
  // Greater than 0 is a timeout in milliseconds and -1 means "block forever",
  // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard.
  if (timeoutMs != 0) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.poll(fds, timeoutMs);
}
origin: FlexoVM/flexovm

@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException {
  // Greater than 0 is a timeout in milliseconds and -1 means "block forever",
  // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard.
  if (timeoutMs != 0) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.poll(fds, timeoutMs);
}
origin: com.bugvm/bugvm-rt

@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException {
  // Greater than 0 is a timeout in milliseconds and -1 means "block forever",
  // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard.
  if (timeoutMs != 0) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.poll(fds, timeoutMs);
}
origin: com.gluonhq/robovm-rt

@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException {
  // Greater than 0 is a timeout in milliseconds and -1 means "block forever",
  // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard.
  if (timeoutMs != 0) {
    BlockGuard.getThreadPolicy().onNetwork();
  }
  return os.poll(fds, timeoutMs);
}
origin: MobiVM/robovm

pollFds[0].fd = fd;
pollFds[0].events = (short) POLLOUT;
int rc = Libcore.os.poll(pollFds, remainingTimeoutMs);
if (rc == 0) {
  return false; // Timeout.
origin: com.mobidevelop.robovm/robovm-rt

pollFds[0].fd = fd;
pollFds[0].events = (short) POLLOUT;
int rc = Libcore.os.poll(pollFds, remainingTimeoutMs);
if (rc == 0) {
  return false; // Timeout.
origin: ibinti/bugvm

  rc = Libcore.os.poll(pollFds.array(), (int) timeout);
} catch (ErrnoException errnoException) {
  if (errnoException.errno != EINTR) {
libcore.ioOspoll

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

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Option (scala)
  • Top plugins for Android Studio
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